The Israeli military said it had opened fire on three Palestinians approaching the border fence after they failed to respond to warning shots .