The border guarding force said it has recovered the bodies of the two. An AK-47 assault rifle, a pistol and over two dozen bullet rounds were recovered.
The incident took place on the intervening night of September 19-20 in the Ajnala sector in Amritsar.
"When challenged by BSF troops, infiltrators fired on ambush line with automatic weapons. Taking cover, the fire was appropriately retaliated and infiltrators were neutralised near the border fence," a Border Security Force (BSF) spokesperson said. The force foiled the infiltration bid, he added.
"The area has been cordoned off and the search is on at the International Border," the spokesperson added.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.