Pakistan counterterror measures defeat India