Israeli police on Thursday shot dead a 32-year-old Palestinian man suspected of having tried hours earlier to kill a far-right Jewish activist, leading to fierce clashes in East Jerusalem and fears of a new Palestinian uprising.
The Al-Aqsa compound is a central cause of the latest violence, was closed to all visitors as a security precaution. It was the first full closure of the site in 14 years.
Palestinian President Mahmoud Abbas denounced Israeli actions as "tantamount to a declaration of war".
Moataz Hejazi's body lay in a pool of blood among satellite dishes on the rooftop of a three-storey house in Abu Tor, a district of Arab East Jerusalem, as Israeli forces sealed the area and repelled stone-throwing Palestinian protesters.
Hejazi was suspected of shooting and wounding Yehuda Glick, a far-right religious activist who has led a campaign for Jews to be allowed to pray at the Al-Aqsa compound.
Glick, a U.S.-born settler, was shot as he left a conference at the Menachem Begin Heritage Centre in Jerusalem late on Wednesday, his assailant escaping on the back of a motorcycle. A spokesman for the centre said Hejazi had worked at a restaurant there. Glick, 48, remains in serious but stable condition with four gunshot wounds, doctors said.
Residents said hundreds of Israeli police were involved in the pre-dawn search for Hejazi. He was tracked down to his family home in the winding, hilly backstreets of Abu Tor and eventually cornered on the terrace of an adjacent building.
"Anti-terrorist police units surrounded a house in the Abu Tor neighbourhood to arrest a suspect in the attempted assassination of Yehuda Glick," Israeli police spokesman Micky Rosenfeld said. "Immediately upon arrival they were shot at. They returned fire and shot and killed the suspect."
Locals identified the man as Hejazi, who was released from 11 years in an Israeli prison in 2012. Hejazi's father and brother were arrested. Israeli police fired sound bombs to keep back groups of angry residents, who shouted abuse as they watched the drama unfold from surrounding balconies.
One Abu Tor resident, an elderly Arab man with a walking stick who declined to be named, described Hejazi as a troublemaker and said "he should have been shot 10 years ago". Others said he was a good son from a respectable family.
"They are good people, he does nothing wrong," said Niveen, a young woman who declined to give her family name.
Hamas and Islamic Jihad, two militant groups, praised the shooting of Glick and mourned Hejazi's death.
"We praise his martyrdom that came after a life full of Jihad and sacrifice and which responded to the call of holy duty in defending Al-Aqsa mosque," Islamic Jihad said.
East Jerusalem, which was captured by Israel in the 1967 Middle East war and has been occupied since, has been a source of intense friction in recent months, especially around Silwan, which sits in the shadow of the Old City and Al-Aqsa.
Israeli settler organisations have acquired more than two dozen buildings in Silwan over the years, including nine in the past three months, and moved settler families into them, an effort to make the district more Jewish. Around 500 settlers now live among approximately 40,000 Palestinians residents.
That process, combined with the tension over the site, which is the third-holiest shrine in Islam, have led to the most-fractious atmosphere in East Jerusalem in more than a decade, locals say - since the second Intifada or uprising began in 2000.
On Thursday, crowds of young Palestinian men and boys blocked off the streets near where Hejazi was killed with rubbish skips and lit fires. They smashed tiles and bricks and used the pieces to throw at Israeli police, masking their faces with bandannas or pulling hooded tops around their heads.
Police responded with sound bombs and tear gas, scattering the crowd, although it quickly returned. Clashes continued more than eight hours after Hejazi was killed.
"It is not a good situation, it is the worst, everyone is angry," said Galib Abu Nejmeh, 65, who wandered down the rock-strewn street dressed in a smart brown suit and tie.
"It is becoming like another Intifada," he said, comparing it to the scenes in East Jerusalem in the late 1980s, when Palestinians first rose up against Israeli occupation.
After Glick was shot, far-right Jewish groups urged supporters to march on Al-Aqsa on Thursday morning. That prompted Israeli police to shut access to the site to everyone - Muslims, Jews and all tourists.
Glick and his backers, including Moshe Feiglin, a far-right member of Prime Minister Benjamin Netanyahu's Likud party, are determined to change the status quo that has governed Al-Aqsa since Israel seized the walled Old City in 1967.
Those rules state that Jordan's religious authorities are responsible for administering Al-Aqsa and say that while Jews may visit the marble-and-stone esplanade, they cannot pray there.
Glick and his supporters argue that Jews should have the right to pray at their holiest site, where two ancient Jewish temples once stood, even though the Israeli rabbinate says the Torah forbids it and many Jews consider it unacceptable.
*This story was edited by Ahram Online.