President Barack Obama condemned an "horrific attack" on a Jerusalem synagogue Tuesday that left four people, including three US citizens, dead and urged Israelis and Palestinians to calm tensions.