Defence spokesperson Col Rajesh Kalia said a group of militants was spotted infiltrating from Pakistan into India near Dulanja area of border town Uri -- some 120 km from here.
The infiltrating militants opened fire at the forces, ensuing into a fierce gun battle that left five militants dead, Col Kalia said.
Director General of Police S.P. Vaid tweeted about the operation and said four "suicidal JeM terrorists were killed in Dulanja while infiltrating, in a joint operation by (Jammu and Kashmir) Police, army and (central armed police forces) CAPF".
"Keep up the good work," he lauded the forces.
Police sources here said all the slain militant were Pakistan nationals.