The US president warned Netanyahu he would be on his own if attacks continue after Israel and Iran paused fighting.