JERUSALEM -- Hundreds of Muslim worshippers visited a Jerusalem holy site Sunday after Israel reopened the compound following a rare closure in response to a deadly shooting last week that raised concerns about wider unrest.

For the first time in decades, Israel closed the site -- known to Muslims as the Noble Sanctuary and to Jews as the Temple Mount -- on Friday after three Arab citizens of Israel opened fire from the sacred site with automatic weapons, killing two police officers. The three were later shot dead inside the compound.

Prime Minister Benjamin Netanyahu said that following consultations with security officials the site would be reopened Sunday afternoon with increased security measures that included metal detectors at the entrance gates and additional security cameras.

Get Breaking News Delivered to Your Inbox

At midday, Israeli police opened the gates to allow worshippers to enter through the newly erected detectors. Police said some worshippers refused to go through them and knelt to pray outside instead. But despite concerns that the new measures could slow movement and spark tensions, police said they appeared to be working fine and that 200 people had already passed through.

Palestinians stand in front of Israeli police officers and newly installed metal detectors at an entrance to the compound known to Muslims as Noble Sanctuary and to Jews as Temple Mount, in Jerusalem's Old City, July 16, 2017. Reuters/Ammar Awad

The attack triggered a rare phone conversation between Netanyahu and Palestinian President Mahmoud Abbas, who condemned the attack and called for the site to be reopened. Jordan, a custodian of the sacred compound, also called for its immediate reopening. Netanyahu sought to allay Muslim fears, saying that the status quo at the Muslim-administered site "will be preserved." But Gaza's Hamas rulers called the act a "religious war" and urged Palestinians to carry out more attacks.

Early Sunday, Israeli police said security forces shot dead a Palestinian assailant behind a pair of recent shooting attacks. Spokesman Micky Rosenfeld said police tracked down the 34-year-old suspect in a joint operation with the military. The suspect opened fire with an automatic weapon, prompting the troops to return fire, killing him.

In the past two years, Palestinians have killed 45 Israelis, two visiting Americans and a British tourist in stabbings, shootings and car-ramming attacks. During that period, Israeli forces have killed more than 255 Palestinians, most of them said by Israel to be attackers while others were killed in clashes with Israeli forces.

Israel blames the violence on incitement by Palestinian political and religious leaders compounded on social media sites that glorify violence. Palestinians say the attacks stem from anger over decades of Israeli occupation of territories they claim for their future state.

The Jerusalem shrine has been the scene of repeated confrontations, including during the current wave of violence.

Israel has previously accused Palestinians of stockpiling rocks and other projectiles in one of the mosques in the holy compound. Israeli security forces have fired tear gas and stun grenades at the compound to disperse Palestinian stone throwers, who have at times targeted Jews praying at the adjacent Western Wall.

In September 2000, Israel's then-opposition leader Ariel Sharon made a provocative visit to the site, sparking Palestinian protests that quickly escalated into armed clashes between Palestinian gunmen and Israeli soldiers.

The incident was one of the triggers of an armed Palestinian uprising and an Israeli military crackdown. The violence claimed several thousand victims, most of them Palestinians, and only began to ebb in 2005.