Six Palestinians have been killed in an attack by Israeli forces on a school sheltering displaced civilians in Gaza.