A gunman killed at least five people in a Tel Aviv suburb on Tuesday before he was fatally shot, the national ambulance service said, in the third deadly attack in Israel in a week.
"Israel is facing a wave of murderous terror," Prime Minister Naftali Bennett tweeted after the shootings in Bnei Brak, a Jewish ultra-Orthodox city on the outskirts of Israel's commercial capital.
The shooting raised to 11 the number of people killed by gunmen in Israel over the past week, the sharpest spike in attacks on city streets in years.
Palestinian President Mahmoud Abbas condemned the killing of Israeli civilians and stressed that the killing of Israelis and Palestinians would only lead to a deterioration of the situation, cautioning against retaliatory attacks by Jewish settlers and others, Palestinian Wafa news agency reported.
Palestinians have been reporting a rise in settler violence across the West Bank and East Jerusalem, which Israel captured in a 1967 war.
Amateur video broadcast on Israeli television stations showed a man dressed in black and pointing an assault rifle walking down a road in Bnei Brak.
Israeli media reports, quoting unidentified security officials, said the assailant was a Palestinian from a village near the city of Jenin in the occupied West Bank.
Police said he killed four civilians and an officer who had arrived on the scene before officers fatally shot the gunman.
There was no immediate claim of responsibility for the attack.
Israeli officials had cautioned about a surge in assaults in the run-up in April to the Muslim holy month of Ramadan, a period in which violence has surged in the past.
Last year saw nightly Ramadan clashes between Palestinians and Israeli police and settlers. Police raids at Al-Aqsa mosque compound and a ban on evening gatherings at Damascus Gate helped ignite violence between Israel and Gaza militants that led to 11 days of Palestinian rocket attacks and Israeli air strikes.
In Bnei Brak, witnesses said the gunman began shooting at apartment balconies and then at people on the street and in a car.
"I live on Hashneim Street in Bnei Brak and I was at home when I heard gunshots," paramedic Menachem Englander said, according to a tweet posted by Magen David Adom. "I immediately went out to the street and saw a terrorist pointing a weapon at me. By a miracle, his weapon jammed and he couldn't shoot."
Last week, a citizen of Israel killed four people in a stabbing and car ramming attack in the southern city of Beersheba, before he was shot dead by a passerby. Israeli authorities said he was an Islamic State sympathiser.
On Sunday, as an Israeli-Arab summit convened in southern Israel, an Arab assailant shot and killed two police officers in Hadera, a city some 50 km (30 miles) north of Tel Aviv. Other officers shot and killed him.
Islamic State claimed responsibility for the Hadera attack.