VIENNA — Gunmen opened fire Monday on people enjoying a last evening out in Vienna before a coronavirus lockdown in what authorities said was a terror attack that left at least two dead — including one of the assailants — and 15 wounded.

“We are victims of a despicable terror attack in the federal capital that is still ongoing,” Austrian Chancellor Sebastian Kurz said hours after the gunfire erupted. “There are still several perpetrators on the run.”

Police said several shots were fired shortly after 8 p.m. on a lively street in the city center and there were six shooting locations. Unverified footage posted on social media showed gunmen walking through the streets of Vienna, apparently shooting at people at random, wounding several.

Interior Minister Karl Nehammer told public broadcaster ORF the assailants were armed with rifles and that the army had been asked to guard key locations in the city to allow police to pursue the gunmen.

Kurz praised police for killing one of the attackers and vowed: “We will not never allow ourselves to be intimidated by terrorism and will fight these attacks with all means.”

Vienna Mayor Michael Ludwig said 15 people were hospitalized, seven with serious injuries.

Oskar Deutsch, the head of the Jewish community in Vienna, said the shooting took place outside the city’s main synagogue but that it wasn’t clear whether the house of worship had been targeted. The synagogue was closed at the time, he tweeted.

Rabbi Schlomo Hofmeister said he saw at least one person shoot at people sitting outside at bars in the street below his window.

“They were shooting at least 100 rounds just outside our building,” Hofmeister said.

“All these bars have tables outside. This evening is the last evening before the lockdown,” he added. “As of midnight, all bars and restaurants will be closed in Austria for the next month, and a lot of people probably wanted to use that evening to be able to go out.”

French President Emmanuel Macron tweeted the French “share the shock and grief of the Austrian people hit by an attack tonight.”

“After France, this is a friendly country that has been attacked. This is our Europe ... We will not give in,” he wrote.

France has endured three attacks blamed on Muslim extremists in recent weeks: one by a Pakistani refugee that wounded two people outside satirical newspaper Charlie Hebdo’s old headquarters; the beheading of a schoolteacher who showed students caricatures of the Prophet Muhammad; and a deadly knife attack Thursday in a church in the Mediterranean city of Nice.

All attacks were strongly condemned by Austrian Chancellor Kurz at the time.

Authorities in Vienna urged people to avoid all open spaces and public transportation. Police said trams and buses weren’t stopping and urged social media users not to post videos of the police operation so as not to endanger officers.