AMMAN, Jordan — Thousands of Jordanians chanted “death to Israel” as they attended the Tuesday funeral of a teenage assailant shot dead by an Israeli embassy security guard.

Mohammed Jawawdeh, 17, was killed Sunday, when he attacked the guard with a screwdriver at the embassy compound.

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

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

The killings sparked a standoff between Israel and Jordan amid tensions over the Temple Mount, 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 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 Palestinian 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 the Temple Mount, which houses the Al Aqsa Mosque and the Dome of the Rock.

Israel had installed the devices following a July 14 attack in which three Arab Israelis killed two policemen who were on duty just outside the compound. They used firearms smuggled onto the mount.

The move to bolster security at the access gates to the compound, seen by Palestinians as an attempt to assert Israeli control over the site, triggered Muslim outrage and deadly violence.

The Temple Mount is administered by a Jordanian-controlled Islamic trust, and Amman has been highly critical of what it perceived as changes to the status quo at the holy site following the introduction of the metal detectors. Palestinians too had denounced the measures as a bid by Israel to assert control over the holy site, and Muslim leaders called on worshipers to boycott the site until the detectors were removed.

Israel has repeatedly and vociferously denied changing the status quo or trying to do so.

King Abdullah II of Jordan spoke with Israeli Prime Minister Benjamin Netanyahu late Monday, urging him to remove the devices.

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.

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.

A Jordanian inquiry confirmed that the Jordanian teen attacked the Israeli guard, when then shot him, also killing a second Jordanian national by accident. Israel said the guard, Ziv, acted in self-defense.

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.