An Israeli air strike killed four Palestinians at a graveyard in Gaza City on Thursday, with medics saying they were attending a funeral.