"A major infiltration bid was foiled today in the Machil sector by alert troops," a defence spokesman said in Srinagar.
"Five weapons have been recovered from the terrorists. The operation is still going on in the area," Defence Ministry spokesman Colonel Rajesh Kalia said.
Around 40 terrorists trying to cross the Line of Control have been killed by security forces this year.
Meanwhile, Pakistani troops violated the ceasefire in Uri sector and fired towards Indian posts, the Army said.