Two to three terrorists are believed to be trapped after a gunbattle erupted during a joint cordon and search operation by security forces.