Donald Trump has lashed out at both Israel and Iran, swearing on camera after accusing the two countries of violating the ceasefire in the Middle East.