Inspector General of Police (IGP) Kashmir has confirmed that two soldiers were martyred and one civilian was killed in an encounter with terrorists in Anantnag district.