An Israeli military spokeswoman said the air force and army had attacked gunmen who fired upon its troops during an operation in the area launched to " ensure that rocket crews , snipers and tunnel diggers are kept away from the border fence . "