Life in Sderot prepared him to respond to synagogue attack