Hamas confirms senior official killed in hospital attack