Jerusalem: A Palestinian opened fire from a car in Jerusalem on Sunday, wounding at least four people before police shot him dead, authorities said.
The attack occurred near police headquarters, close to the line dividing mainly Palestinian east Jerusalem from the mostly Jewish western sector of the city.
It comes at a time of increased Jewish visitors to the flashpoint Al-Aqsa mosque compound in Jerusalem for the holidays of Rosh Hashanah, which was last week, and Yom Kippur, which begins Tuesday evening.
Police said the 39-year-old assailant fired in the direction of a tram station in the area, seriously wounding a woman.
He then continued at high speed and shot at a car, leaving another woman badly hurt, they added.
The attacker then headed toward the nearby neighbourhood of Sheikh Jarrah in Israeli-annexed east Jerusalem, where a number of upscale hotels are located, and got out of his car, police said.
As officers approached him by motorcycle, he opened fire at them.
Police returned fire and killed him, but two officers were wounded, including one seriously, they said.
Police said the attacker was from the Silwan area of east Jerusalem.
Israeli Prime Minister Benjamin Netanyahu, speaking at the start of a cabinet meeting on Sunday, saluted the police, saying they had "acted rapidly and very firmly against the terrorist, who was eliminated".
The Al-Aqsa mosque compound is holy to both Muslims and Jews, who refer to it as the Temple Mount.
The site is central to the Israeli-Palestinian conflict, with Palestinians fearing that Israel may one day seek to assert further control over it.
Last year`s Jewish high holidays led to clashes and marked the start of an upsurge in Palestinian gun, knife and car-ramming attacks.
Violence since October 2015 has killed at least 232 Palestinians, 34 Israelis, two Americans, one Jordanian, an Eritrean and a Sudanese national, according to an AFP count.
Most of the Palestinians were carrying out attacks, according to Israeli authorities.
Others were shot dead during protests and clashes, while some were killed in air strikes on the Gaza Strip.
Many analysts say Palestinian frustration with the Israeli occupation and settlement-building in the West Bank, the complete lack of progress in peace efforts and their own fractured leadership have fed the unrest.
Israel says incitement by Palestinian leaders and media is a leading cause of the violence.