Two Jordanians have been shot dead and an Israeli wounded in the heavily fortified Israeli embassy compound in Amman.

The kingdom’s Public Security Directorate said the incident happened in a residential building in the compound in Jordan’s capital..

Before the shooting, Jordanians had entered the apartment building for carpentry work, it said.

It did not say what triggered the shooting.

Three people were initially wounded in the incident, the security agency said.

Two Jordanians later died, according to the agency and the news site Hala Akhbar, linked to the Jordanian military.

One of the Jordanians killed was a physician at the scene, the security agency said.

The Israeli was in an “unstable” condition, the news site said.

The Israeli foreign ministry did not comment.

The incident comes at a time of mounting tensions between Israel and the Muslim world over metal detectors Israel installed at a Jerusalem shrine revered by Muslims and Jews.

Jordan is the Muslim custodian of the site. On Friday, thousands of Jordanians staged an anti-Israeli protest in Amman.