A temporary ceasefire in Gaza has 'collapsed' after a Tuesday midnight deadline passed with no agreement to extend a truce and Israel and Hamas resumed hostilities, a senior Palestinian official said.