Hundreds of police officers are working to keep rival protesters apart in a city in eastern Germany where an Iraqi and a Syrian citizen were arrested over the killing of a German man.

About 1,000 left-wing protesters yelled slogans like “Nazis out” and “There’s no right to Nazi propaganda” at a larger group of right-wing demonstrators that retorted with “We are louder, we are more” and “Lying press”.

Officers in riot gear pushed people back as they tried to get at those on the other side. The demonstrators from the right hurled bottles and firecrackers at the rival camp before starting off on a march. No arrests or injuries were immediately reported.

Men shout during a far-right protest in ChemnitzMore than a quarter of people voted for the far-right Alternative for Deutschland in Chemnitz (AP Photo/Jens Meyer)

Both groups took to the streets of Chemnitz after a 35-year-old German man was injured during a clash after a street festival and died early on Sunday.

Prosecutor Christine Muecke told reporters the killing stemmed from a verbal confrontation that escalated. Two men were taken into custody — a 22-year-old Syrian citizen and a 21-year-old Iraqi citizen – and both were held on suspicion of manslaughter.

She refused to provide more details about the suspects or the victim.

Hundreds of people also took part in spontaneous protests late on Sunday in Chemnitz, a city where almost a quarter of the voters supported the far-right Alternative for Germany party last year. Videos posted on social media appeared to show far-right protesters threatening and chasing passers-by.

Of the estimated 800 people who took part in the first round of protests, about 50 were involved in violence and attacked police officers with bottles and stones, Chemnitz Police Chief Sonja Penzel said.

Protesters light fireworks during a far-right demonstration in Chemnitz, GermanyPolice separated far-right and left wing demonstrators (AP Photo/Jens Meyer)

A Syrian teenager and an Afghan teenager were attacked in separate incidents but were not seriously hurt and a 30-year-old Bulgarian was also threatened, she said.

Ms Penzel said police are still evaluating video footage and called for any witnesses to the violence to come forward.

Ahead of the protests, authorities vowed not to let the situation get out of hand. City police had water cannons on hand.

“We will not abandon the streets to violent offenders and those spreading chaos,” Saxony state interior minister Roland Woeller said.

Earlier in the day, Chancellor Angela Merkel’s spokesman, Steffen Seibert, strongly condemned Sunday’s violence.

“What was seen yesterday in parts of Chemnitz and what was recorded on video has no place in our country,” Mr Seibert told reporters in Berlin.

“People ganging up, chasing people who look different from them or who come from elsewhere … is something we won’t tolerate,” he said. “This has no place in our cities, and I can say for the German government that we condemn this in the sharpest possible manner.”

Mr Seibert also criticised a far-right MP who suggested that German authorities were unable to protect citizens.

“There is no place in Germany for vigilantism, for groups that want to spread hatred on the streets, for intolerance and racism,” Mr Seibert said.