They shouted anti-government slogans and burned several cars before throwing stones and opening fire at the mayor's office, local media reports said.
Security forces quickly responded to the attack, which led to clashes, and several people were injured, according to the media.
Mass riots began in Iran in mid-September in connection with the death of 22-year-old Mahsa Amini, who passed away while in police custody after being detained for wearing an "improper" hijab. Iranian authorities have accused Western countries of fueling mass riots, and European diplomats were given a note of protest in connection with anti-Iranian media reports and calls to overthrow the country's government.