Authorities have identified the gunman who stormed a cinema complex in west German town of Viernheim.
The 19 year old is a resident of northern Germany, local prosecutors said.
The gunman did not have any live cartridges and he was firing using a blank, the public prosecutors office said.
Over a dozen people were reported injured. Most were exposed to the tear gas lobbed by the police.
The attack began at 3 pm local time, but there were not many people in the cinema which was housed in a shopping mall.
The masked gunman who was carrying a pistol and a rifle had barricaded himself in the complex and had taken hostages.
Special police surrounded the Kinoplex cinema in the industrial town, some 80 kms from Frankfurt.
The gunman has been shot dead after elite police forces stormed the complex, the Interior Minister of Hesse state was quoted as saying by a German news outlet.
It is still unknown whether the gunman was politically motivated or radicalised.
Security has been stepped up at public places and transport hubs following the attacks in Paris and Brussels.
*Originally published as ‘Several injured as gunman fires at cinema in west German town of Viernheim.’ This story has been updated on 24 June, 2016.