A short time later , Hamas and other militant groups said they would stick to their pledge to stop attacks on Israelis if the Israeli army does not launch offensive operations .