The Israeli military , which sent troops , tanks and aircraft after Gaza rocket squads , said it only attacks rocket-launching operations , but noted that militants sometimes operate within civilian areas .