A United Nations school sheltering displaced Palestinians in central Gaza came under Israeli fire on Tuesday as a team was inspecting damage from a day earlier, a UN official said.