US presidential candidates Kamala Harris and Donald Trump clashed on foreign policy including Israel’s war on Gaza.