Palestinian prime minister Rami Hamdallah cut short a rare visit to Gaza on Tuesday after an explosion targeted his convoy, a source in the delegation said.