Donald Trump said he was not notified in advance of the Israeli attack on Qatar, a crucial broker in the negotiations between Israel and Hamas on ending the Gaza war.