An armed man was killed by police after taking hostages inside a cinema complex in Viernheim, western Germany, local officials confirmed, adding that no one was hurt in the incident. Previous reports said the man had fired a gun, injuring up to 50 people.

#viernheim shooting: Suspected German gunman shot dead by police at cinema complex Видео опубликовано RT (@rt) Июн 23 2016 в 9:17 PDT

The interior minister of the German state of Hesse, Peter Beuth, confirmed that the man was shot and killed after police stormed the complex.

The man reportedly entered the Kinopolis cinema wearing a mask and a cartridge belt around his shoulder.

READ MORE: Suicide belt, grenade found near German cinema complex attacker - Bild

Beuth said the man was armed with a rifle.

"The police had an emergency call at 2:45pm (12:45 GMT). The caller said there was a masked man...armed with a long gun. It is unclear whether it was a real gun," Beuth told the Hesse parliament.

"The caller heard four shots and said that the masked man appeared a little mentally unstable. Police special forces were called."

Police arrived at the scene shortly after the initial reports, including a number of officers from the SEC special task force. The area was cordoned off by authorities.

Initial reports stated that the man had fired shots at people inside the building, and that between 20 and 50 people had been injured.

#Breaking Unconfirmed Reports suggest 40 people are being held hostage #viernheimpic.twitter.com/JDrniMzTPi — News This Second (@NewsThisSecond) June 23, 2016

The man then reportedly barricaded himself inside the premises.

Reports suggest 25-50 injured in Germany cinema attack. No confirmation yet #viernheimpic.twitter.com/FMP7kYlLVs — News This Second (@NewsThisSecond) June 23, 2016

However, Focus later reported that the man was armed with a blank weapon, and that people were only hurt by tear gas.

#BREAKING: Masked gunman opwned fire and took hostages in a cinema in #Viernheim#Germany. 25 people injured pic.twitter.com/5VXrteCJuT — Amichai Stein (@AmichaiStein1) June 23, 2016

Police confirmed to Germany's N-TV channel that the man appeared to have no terror background. Beuth referred to the man as a "disturbed individual."

Dr. Paul Lashmar from Sussex University told RT that the whole incident in Viernheim looks “random.”

It’s now important to figure out if the perpetrator’s actions were a manifestation of mental illness or a terrorist attack, he said.

The rapid reaction of the German security force indicates that country is prepared for dealing with such attacks, Lashmar stressed.

“Germany has been on alert for years. The whole of Central Europe is on high alert, watching for this kind of things – very hard to deal with when they pop up. This isn’t a major city… so that fact that the police managed to get armed people there fairly quickly must be a bit of a tribute to them,” he explained.