The two militants were killed during an operation launched by the army in Keran sector of Kupwara district on Thursday following a specific input about their movement in the area, the spokesman said.
He said the militants were trying to exfiltrate from the Valley to PoK.
The identity of the slain militants was not immediately know, the spokesman said, adding two weapons have been recovered from the scene of the encounter.
He said the operation was in progress till reports last came in.
Exclusive: Salute that soldier at the LoC
Heavy firing along LoC as Pak violates ceasefire
1 jawan killed, 3 hurt in IED blast along LoC
Making sense of nuisance along the LoC
Grow up! Tit for tat is not Pakistan policy: Hina Rabbani