According to the officials, the search operation turned into an encounter after the hiding terrorists opened fire on the security personnel.