Militären uppges ha tagit kontroll över sjukhuset i Gaza.