Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

The mayor of Jerusalem and his bodyguard stopped a knife assault on a man in the city Sunday, wrestling the attacker to the ground and holding him until police arrived, officials said.

Nir Barkat, 55, was riding in his car when he saw the attack unfold in front of him, said his spokesman, Brachi Sprung. Security camera footage showed the attacker swinging at a crowd of pedestrians with a knife near city hall when he struck an ultra-Orthodox Jewish man, Reuters reported. The video then shows Barkat and his bodyguard holding the attacker down at a pedestrian crossing.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

"My bodyguard took out his weapon and when he aimed at the terrorist, the terrorist dropped his knife and we immediately tackled him on the ground to make sure that he cannot continue with the terror attack and then went out to see the wounded person that, thank God, was relatively slightly wounded we gave him first aid," Barkat told reporters shortly afterward.

The wounded man, who is in his 20s, was taken to a hospital for medical treatment, the Israel Police Foreign Press spokesman said on Twitter. He wasn’t seriously wounded, medical officials said.

The alleged attacker, an 18-year-old Palestinian, was arrested. He didn’t have authorization to live in Israel.

Elected Jerusalem’s mayor in 2008, Barkat formerly served as an officer in the paratrooper’s brigade.

Jerusalem Mayor Nir Barkat (C) walks after praying at the Western Wall in Jerusalem's Old City, in this October 23, 2013 file photo. Barkat and his security guard wrestled a Palestinian attacker to the ground near city hall on February 22, 2015 after an ultra-Orthodox Jew was stabbed at a busy city intersection. REUTERS/Baz Ratner/Files (JERUSALEM - Tags: POLITICS CIVIL UNREST RELIGION) BAZ RATNER / Reuters

SOCIAL

Now that's what I call a mayor... Er... #SuperMayor ! Jerusalem Mayor, Nir Barkat, nabs attacker in a stabbing! http://t.co/kAGlhsGXjy — Barak Raz (@BarakRaz82) February 22, 2015

— Paul Goldman, Miranda Leitsinger and Reuters contributed to this report.