The ceremony marking the official relocation of the embassy from Tel Aviv to Jerusalem took place amid deadly demonstrations in Gaza.