JERUSALEM — Violence returned Thursday to a sacred site in Jerusalem as Palestinians gathering for prayers at the Al-Aqsa Mosque compound clashed with Israeli police nearly two weeks after a deadly attack there.

Earlier in the day, Palestinians had celebrated as Israel rolled back security measures and thousands of worshippers heeded a call by Muslim authorities to assemble for prayers at the mosque for the first time in 11 days.

But as crowds pushed at one of the gates to the compound in the Old City, police fired tear gas and rubber bullets to disperse them, with dozens reported wounded.

Israeli Prime Minister Benjamin Netanyahu ordered police reinforcements in Jerusalem following the latest unrest, and police were weighing limiting entry of younger men in anticipation of mass protests for Friday prayers – the highlight of the Muslim religious week.

Israeli troops in the West Bank were put on high alert and prepared for more violence Friday, a military official said.

Tensions have been running high at the site sacred to both Muslims and Jews since three Israeli Arab gunmen killed two police officers on July 14, prompting Israel to install metal detectors and other security devices.

Israel said the measures were needed to prevent more attacks. Palestinians claimed Israel was trying to expand its control over the site, which Israel denied.

The security measures outraged Muslims and triggered protests, and low-level clashes have continued in and around Jerusalem since then, highlighting the deep distrust between Israel and the Palestinians over the holy site.

In protest, Palestinians have prayed in the streets outside the shrine since the July 14 attack.