JERUSALEM, Israel — A Palestinian motorist launched a shooting spree near the Israeli police headquarters in Jerusalem Sunday, killing two people and wounding five others before being shot dead, Israeli police and emergency services said.

Police spokeswoman Luba Samri said the attacker sped toward a busy stop of the city's light rail and opened fire, seriously wounding a 60-year-old woman waiting there.

The attacker then continued driving and shot another woman who was seated in her car before speeding off toward an Arab neighborhood in east Jerusalem.

Samri said police officers on motorcycles chased the assailant, who eventually stepped out of his vehicle and opened fire at them, critically wounding a 30-year-old police officer in the shootout.

Samri said a separate police force ultimately shot and killed the attacker and identified him as a 39-year-old man from the east Jerusalem neighborhood of Silwan.

Israel's Magen David Adom emergency medical service said it treated seven wounded people, two of whom later died of their wounds.

Police cordoned off the area of the shooting and briefly shut down traffic on the light rail.

The attack was an unusual one in the yearlong spate of Palestinian assaults since most have been stabbings rather than live fire.

The said attack on Sunday was the deadliest attack on Israelis since June 8, when a pair of Palestinians opened fire and killed four people at a popular Tel Aviv food market.

The Palestinian attacks began around last year's Jewish high holidays and have since killed 36 Israelis and two visiting Americans.

About 219 Palestinians have been killed during that period, with Israel saying the vast majority of them are attackers.

Israel has warned that the potential for violence could rise as the Jewish high holidays approach again and has beefed up its security presence as a result.

There has been a recent surge in Palestinian attacks that shattered weeks of relative calm and raised fears of a return to the near-daily attacks often seen throughout the wave.

Israel has blamed the violence on provocation by Palestinian political and religious leaders worsened on social media sites.

The Palestinians say it is rooted in nearly 50 years of military occupation and dwindling hopes for independence.

Fawzi Barhoum, a spokesman for Gaza's Islamic Hamas leaders, welcomed the attack in a statement saying it was "a natural response."

Internal Security Minister Gilad Erdan said there were no specific warnings of an attack ahead of time and the quick response of security forces on the scene prevented a deadlier result.

Erdan repeated his previous criticism of social media sites that allow militants to spread their hateful messages of incitement.

"It has an impact. It pushes people out to the streets to commits acts of murder and terror," Erdan said. (AP)