The school had been sheltering Gaza residents displaced by the nearly four weeks of fighting that have taken place.