President Obama condemned an attack by two Palestinians on a Jerusalem synagogue that killed three Americans and a British citizen Tuesday.

Speaking before a meeting with national security and public health officials, Obama said that the "majority" of Palestinians and Israelis "overwhelmingly want peace."

"Too many Israelis have died; too many Palestinians have died. At this difficult time I think it's important for both Palestinians and Israelis to try to work together to lower tensions and reject violence," Obama said.

In a statement released earlier Tuesday, Obama "strongly condemn[ed]" the attack.

"There is and can be no justification for such attacks against innocent civilians," he said.

Among the dead was Rabbi Moshe Twersky, who taught at an English-speaking religious school in Jerusalem and was a member of one of the most respected families in Orthodox scholarship. Aryeh Kupinsky and Cary William Levine were the other Americans who were killed.