The attack involved at least eight Taliban militants who caught the soldiers off-guard during Friday prayers, when many were unarmed in a mosque on the base or having lunch at a nearby dining facility.