At least two people were killed in two shooting incidents in the east German city of Halle.
German police arrested one suspect. Initially another suspect was thought to have fled in a vehicle, but later it was established that the shooting was the work of a lone gunman.
Police urged locals to stay indoors, as a major anti-terror operation was in progress.
A heavily armed assailant, wearing military camouflage and a helmet, strode up to a Doner kebab shop in Halle and threw a grenade or firecracker, which bounced off the door and exploded outside, witnesses told German n-tv.
Then the gunman opened fire with an assault rifle, through the Doner shop windows, witness Konrad Rösler told n-tv. About five or six customers were, he said, with him inside and panic broke out. One of them was killed, he said, and he hid in the toilet.
There was more shooting outside a Jewish synagogue in Halle, German media report. According to n-tv, there were 50 to 60 people inside the synagogue celebrating Yom Kippur - one of the holiest days for Jews - and they were guarded by security.
The assailant did not get inside. A witness said the gunman had thrown a petrol bomb or grenade over a cemetery wall there.
All images subject to copyright.