The mayor of Jerusalem and his bodyguard stopped a knife assault Sunday, wrestling the alleged attacker to the ground and restraining him until police arrived, according to officials.

Footage from a security camera shows an 18-year-old Palestinian man stab an Orthodox Jewish man at a pedestrian crossing near the city's center.

According to a spokesman, Mayor Nir Barkat, 55, was driving by at the time. He saw the attack unfolding and exited the vehicle.

Barkat's bodyguard pointed a gun at the suspect, who dropped the knife. Barkat and his bodyguard then wrestled him to the ground.

Cell phone video taken at the scene shows the mayor leaning over the suspect as he is being held by several men.

Authorities say the 27-year-old victim was stabbed in the stomach and was taken to a hospital for treatment. His injuries do not appear to be serious.

The alleged attacker was arrested. Officials say he was in Israel illegally.

Watch videos of the incident below.