Gaza death toll rises to 31 amid Israeli attacks