The Israeli military said it struck 18 targets in Gaza overnight, in response to an explosive device that wounded four soldiers along the border with the territory, as Gaza officials said the bodies of two Palestinian teenagers who were killed trying to infiltrate Israel were recovered on Sunday.