A hospital in the Israeli town of Beersheba was hit as Iran fired a barrage of missiles at the country.