Two militants were killed in an encounter with security forces in Anantnag district of Jammu and Kashmir. The encounter broke out near Halkan Gali in the Shangus-Larnoo area of the south Kashmir district. Of the two militants killed, one was a foreigner and the other a local. Their group affiliation was yet to be ascertained, the officials said.