According to officials, vigilant troops spotted unusual movements and, on closer inspection, came under fire from the terrorists