Riyadh (Agencies): A Frenchman has committed suicide by throwing himself off the roof of the Grand Mosque in the holy city of Makkah , Saudi and French officials said.

“A foreigner threw himself from the roof of the Grand Mosque in Makkah” to the courtyard below, “resulting in his instant death,” Saudi police told the official SPA news agency.

A French foreign ministry official said the dead man was French but gave no further details.

The rare act was not the first of its kind to take place in Makkah , the holiest city in Islam — which, like other monotheistic religions, prohibits suicide .

The body was transported to hospital, with an investigation underway “to determine the victim’s identity, what led to the act and how he was able to commit it despite the existence of a metal fence,” SPA said.

Last year, a Saudi man tried to set himself on fire in front of the Kaaba — the square stone building in the center of the mosque compound — but was stopped by security forces.

Every year, millions of Muslim pilgrims from across the world travel to Makkah and Medina, Islam’s second holiest site, also in western Saudi Arabia .