Israel has attacked a school in the Al Shati refugee camp that was a makeshift shelter for displaced Palestinians.