Donald Trump has distanced the US from Israel's "unfortunate" strike in Qatar, which drew international condemnation and killed five members of Hamas.