Located barely half a mile from the Gaza Strip, the Israeli town of Sderot has long been in Hamas’ crosshairs.