A man who drove into a crowd of teenagers in a car with a Mercedes has been arrested in Germany, police said.

The man, who police described as aged between 30 and 40, allegedly struck at least three people, causing minor injuries.

Police said the man, identified as a 35-year-old male, was detained at the scene.

The group of teens was celebrating the New Year’s Eve celebrations in the southern city of Baden-Wuerttemberg when the man drove into them and the group fled in a BMW, police spokesman Thomas Müller said.

Police had been searching for the suspect for several hours, Müller added.

Police say the incident took place in the city of Brandenburg.

The suspect, who was identified as an unemployed resident of Badensdorf, is facing charges of aggravated assault with a weapon and possession of explosives.

Police have yet to release his name.

A spokesman for Germany’s Federal Criminal Police Office said the suspect was being held in custody and that the investigation was ongoing.

He did not provide further details on the alleged attacker’s background.