The Israeli military says aircraft fired at three Palestinian gunmen who were within meters of the security fence separating the Gaza Strip from Israel .