Donald Trump has lashed out at both Israel and Iran - clearly frustrated after both sides exchanged missiles despite a ceasefire being declared.