At least 28 people have been injured, including children, after a car was driven into a crowd in a "suspected attack" in Munich, authorities said.
Workers taking part in a union demonstration were walking along a street when the car overtook a police vehicle that was accompanying the group, according to officers in the German city.
The killings followed knife attacks in Mannheim and in Solingen last year in which the suspects were migrants from Afghanistan and Syria, respectively - in the latter case, also a rejected asylum seeker who was supposed to have left the country.
The man's asylum application had been rejected, but he had not been forced to leave due to security concerns in Afghanistan, said Mr Herrmann.
German Chancellor Olaf Scholz called the events "horrible" and a "terrible attack", saying "an Afghan perpetrator has severely injured people, and that is not something that we can tolerate or accept".