Israel will retaliate after a military officer was wounded by a blast in the south of the Gaza Strip, Prime Minister Benjamin Netanyahu says.