An attack on a UN-run school in Gaza on Thursday has claimed lives among the UN staff, Secretary General Ban Ki-moon said.