The officials said that the search operation turned into an encounter after the terrorists fired upon a search party of the forces, who retaliated.