The Israeli military began an offensive in Gaza after militants kidnapped an Israeli soldier in June .