A man killed in a shootout with police in Munich was an 18-year-old citizen of neighbouring Austria, police have said.

Authorities believed the teenager may have planned an attack on the Israeli Consulate in the German city.

The suspect was fatally wounded near the consulate and a museum on the city’s Nazi-era history after officers were alerted to a man carrying a gun in the Karolinenplatz area at around 9am on Thursday.

The suspect, who was carrying an old long gun with a bayonet attached to it, died at the scene.

Germany Shooting
Police officers block a street after the incident in Munich (Matthias Schrader/AP)

There was no indication that anyone else was hurt, spokesman Andreas Franken told reporters.

Five officers were at the scene at the time the gunfire erupted. Police quickly deployed around 500 officers to the area.

Police said the gunman was an 18-year-old from Austria, but investigators were still looking into his motive.

They did not give further details on the suspect, who left a car near the scene.

“We have to assume that an attack on the Israeli Consulate possibly was planned early today,” Bavaria’s top security official, state Interior Minister Joachim Herrmann, told reporters at the scene.

“It’s obvious that, if someone parks here within sight of the Israeli Consulate… then starts shooting, it most probably isn’t a coincidence.”

Police officers stand next to their vehicles after the incident in Munich
Police officers stand next to their vehicles after the incident in Munich (Matthias Schrader/AP)

Thursday was the 52nd anniversary of the attack by Palestinian militants on the Israeli delegation at the 1972 Munich Olympics, which ended with the death of 11 Israeli team members, a West German police officer and five of the assailants.

“There may be a connection — that must be cleared up,” Bavarian governor Markus Soder said.

Police said they had no indication of incidents at any other locations or of any other suspects.

The Austria Press Agency reported that the man, an Austrian citizen with Bosnian roots, had come to the attention of authorities there last year but was not considered high-risk.

Without naming sources, it said that data and a game had been found on his mobile phone that suggested closeness to Islamic extremist ideology, but an investigation of him for possible membership of the so-called Islamic State group was dropped.

Germany Shooting
Police officers block a street after the incident in Munich (Matthias Schrader/AP)

Israel’s Foreign Ministry said the consulate in Munich was closed when the shooting occurred and that none of its staff had been hurt.

The nearby Munich Documentation Centre for the History of National Socialism, which opened in 2015 and explores the city’s past as the birthplace of the Nazi movement, also said all of its employees were unharmed.

Israeli President Isaac Herzog said he spoke with German counterpart Frank-Walter Steinmeier.

He wrote on the social media platform X, formerly Twitter, that “together we expressed our shared condemnation and horror” at the shooting.

Speaking at an unrelated news conference in Berlin, German Interior Minister Nancy Faeser described Thursday’s shooting as “a serious incident” but said she didn’t want to speculate on what had happened.

She reiterated that “the protection of Jewish and Israeli facilities has the highest priority”.