Anti-Israel demonstration (file)
Anti-Israel demonstration (file)Flash90

Thousands of Jordanians chanted "death to Israel" as they attended the funeral Tuesday of a teenager shot dead when he attacked an Israeli embassy security guard.

Mohammed Jawawdeh, 17, was killed Sunday after he assaulted the guard with a screwdriver at the embassy compound

A second Jordanian was also killed, apparently by accident, and will be buried Thursday.

The attack sparked a standoff between Israel and Jordan amid tensions over a highly sensitive Jerusalem holy site where Israel imposed new security measures after a deadly mid-July attack on police.

Mourners set off with Jawawdeh's coffin from Wihdat city, home to a large Palestinian Arab refugee camp east of Amman, towards the cemetery in nearby Umm al-Hiran, where he was buried.

They carried pictures of the 17-year-old along with PA and Jordanian flags, and chanted "Death to Israel".

"We will go to Jerusalem as martyrs by the millions," they chanted.

Jawawdeh's uncle, Sami, said the family is urging Jordan's King Abdullah II to avenge his death "because he is the one who can decide in such matters".

"Mohammed's blood did not flow in vain," he added, saying it paved the way for Israel's removal early Tuesday of metal detectors at entrances to Jerusalem's Temple Mount.

Israel had installed the devices following a July 14 terrorist attack nearby that killed two policemen. The terrorists had smuggled their weapons into the Al-Aqsa Mosque before carrying out their attack.

The move, seen by Jordanian Waqf as an attempt to assert Israeli control over the site, triggered Muslim outrage and deadly violence.

Jordan is the official custodian of Muslim holy sites in Jerusalem.

King Abdullah of Jordan spoke with Israeli Prime Minister Binyamin Netanyahu late Monday in an attempt to resolve the crisis.

Thousands of Jordanians had demonstrated against Israel in Amman and other cities, calling for "resistance" to "Zionist attacks" and demanding the cancellation of a 1994 peace treaty.

Israel agreed to remove the metal detectors Tuesday.

Also on Monday, the security guard and other diplomats flew home after Amman investigators heard "his account of the incident", a Jordanian government source said.

Jordanian riot police deployed Tuesday morning around the Israeli embassy in a western Amman residential neighborhood after activists posted online calls for an anti-Israel demonstration.