Four Israelis have been killed and eight injured as two men armed with a pistol, knives and axes attacked a West Jerusalem synagogue, police say.
The attackers – Palestinians from East Jerusalem – were shot dead.
There have been several deadly attacks and clashes in Jerusalem recently amid tension over a disputed holy site.
Benjamin Netanyahu blamed “incitement” by Hamas and Palestinian President Mahmoud Abbas, and said the international community had ignored their actions.
Hamas and Mahmoud Abbas’s Fatah party – rival Palestinian factions – agreed to form a unity government earlier this year, a move denounced at the time by Israel.
Mahmoud Abbas’s office issued a statement saying: “The presidency condemns the attack on Jewish worshippers in their place of prayer and condemns the killing of civilians no matter who is doing it.”
The Abu Ali Mustafa Brigades, the military wing of the Popular Front for the Liberation of Palestine, says it carried out the synagogue attack.
Militants from the far-left-wing Palestinian nationalist group have been behind many previous attacks on Israelis.
Hamas and another militant group, Islamic Jihad, praised the attack. Israel has designated both groups as terrorist organizations.
The attack happened at a religious seminary site on Harav Shimon Agassi Street – home to a largely Orthodox Jewish community in the Har Nof neighborhood. Among those killed was Rabbi Moshe Twersky, 60, head of the seminary.
Police say there was a shoot-out with the attackers, said to be cousins, when officers reached the scene.
[youtube Z-6YViQ7vcM 650]