JERUSALEM - Muslims heeded calls Monday not to enter a Jerusalem holy site and protested outside after Israeli authorities installed metal detectors at entrances to the ultra-sensitive compound following an attack that killed two policemen.

The compound was largely empty on Monday apart from tourists and Jewish visitors, with Muslims again praying and protesting outside the site instead of entering through the metal detectors.

The Haram al-Sharif compound, known to Jews as the Temple Mount, includes the Dome of the Rock and the Al-Aqsa mosque. Several hundred people could be seen praying outside two different entrances to the site around midday on Monday.

There were protests after the prayer, with crowds shouting: “Aqsa mosque, we sacrifice our souls and our blood.” Police later sought to move them back.

“We will not break the solidarity of the people,” said Jamal Abdallah, a Palestinian who now lives in the US state of Arizona and was planning to visit Al-Aqsa, but changed his mind when he was told of the situation.

Israel installed the metal detectors after Friday’s attack near the holy site that saw three Arab Israelis open fire on Israeli police.

They then fled to the compound, where they were shot dead by security forces. It was among the most serious incidents in Jerusalem in recent years and heightened Israeli-Palestinian tensions.

Israel took the highly unusual decision of closing the compound for Friday prayers, triggering anger from Muslims and Jordan, the holy site’s custodian.

The site remained closed on Saturday, while parts of Jerusalem’s Old City were also under lockdown. Israeli authorities said the closure was necessary to carry out security checks, adding that the assailants had come from within the holy site to commit the attack.

They began reopening it on Sunday, but with metal detectors in place, while security cameras were also being installed in the area. Al-Aqsa officials have refused to enter and have called on worshippers to do the same.

Palestinians view the new measures as Israel asserting further control over the site. Crowds chanted “Allahu Akbar” (God is The Greatest) as they gathered near the Lions Gate entrance to Jerusalem’s Old City on Sunday.

On Sunday night, skirmishes broke out between Israeli police and worshippers outside the entrance, with the Red Crescent reporting 17 people wounded.

With tensions high, two mosques in the northern Israeli Arab town of Maghar were targeted overnight, one with a stun grenade and another by gunshots. No serious damage was reported. One of the two policemen killed in the attack lived in Maghar. Both of the officers were from the Druze minority.

Israeli Prime Minister Benjamin Netanyahu took the decision to install the metal detectors and cameras following a meeting with security officials on Saturday. He also spoke by phone with Jordan’s King Abdullah II on Saturday night before leaving on a trip to France and Hungary. Abdullah condemned the attack, but also called on Netanyahu to reopen the Al-Aqsa compound and stressed the need to “avoid any escalation at the site”.

Palestinian president Mahmud Abbas conveyed a similar message to Netanyahu when the two spoke by phone on Friday in the wake of the attack.

Proposals to change security measures at the compound have sparked controversy in the past.

A plan developed in 2015 between Israel and Jordan to install cameras at the site itself fell apart amid disagreement over how they would be operated.

The Haram al-Sharif/Temple Mount is central to the Israeli-Palestinian conflict.

It is located in east Jerusalem, occupied by Israel in 1967 and later annexed in a move never recognised by the international community. It is considered the third holiest site in Islam and the most sacred for Jews.

Jews are allowed to visit but not pray there to avoid provoking tensions.

Meanwhile, an Israeli soldier who shot dead a wounded Palestinian assailant will be placed on house arrest pending his appeal of his manslaughter conviction and 18-month sentence, the army said Monday.

A military court ruled that Elor Azaria will be placed under house arrest on July 20, when his mandatory three-year military service ends, an army spokeswoman said.

The French-Israeli infantry medic has been under “open arrest” confined to his army base.

Military judges are expected to rule on his appeal on July 30, Israeli media reported. His imprisonment has been postponed pending his appeal.

Azaria was convicted in January and sentenced the next month after a trial that deeply divided Israeli society.

The March 2016 shooting in the occupied West Bank city of Hebron was caught on video by a rights group and spread widely online.

It showed Abdul Fatah al-Sharif, 21, lying wounded on the ground, shot along with another Palestinian after stabbing and wounding a soldier, according to the army.

Azaria then shot him in the head without any apparent provocation.

He said he feared Sharif was wearing an explosive belt and could blow himself up, a claim judges rejected.

The trial captivated Israel and highlighted deep divisions in public opinion between those who decry his actions and those who say he was justified.

A number of Israeli politicians have called for him to be pardoned, including Prime Minister Benjamin Netanyahu.

Amnesty International has said Azaria’s sentence does “not reflect the gravity of the offence,” while the UN human rights office said it was an “unacceptable” punishment for “an apparent extra-judicial killing”.