AMMAN, Jordan -- Three people, including an Israeli man, were wounded by gunfire Sunday in a residential building in the heavily fortified Israeli embassy compound in Jordan's capital, the kingdom's Public Security Directorate said.

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

One of the Jordanians was critically wounded and later died at a hospital, according to Hala Akhbar, a news site linked to the Jordanian military. The site said the Israeli man was in "unstable" condition.

Get Breaking News Delivered to Your Inbox

A Jordanian security official confirmed that a Jordanian had been killed and an Israeli wounded. He spoke on condition of anonymity because he was not authorized to discuss the incident with the media.

The Israeli Foreign Ministry had no immediate 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.