A teenaged boy also died due to pellet injuries during clashes between protesters and security forces near the encounter site.
Security forces launched a cordon and search operation in Gulab Bagh area of Tral after receiving specific inputs about the presence of terrorists there, a police official said.
As the forces were conducting the search operation, the hiding terrorists fired on them, resulting in an encounter, the official said.
He said three terrorists were killed in the gun battle with security forces.
They were identified as Zahid Ahmad Bhat, Ishfaq Bhat and Mohammad Ashraf Dar.
A 16-year-old boy died after suffering pellet injuries near the encounter site during clashes between protesters and security forces.
Mohammad Younis was brought to SMHS hospital in Srinagar with critical pellet injuries in the chest, the official said, adding, the boy succumbed to injuries at the hospital.
The security officials said the group affiliation of the three terrorists was being ascertained.
Zahid, Ishfaq and Ashraf who were part of the Zakir Musa-led group were about to rejoin Hizbul Mujahideen but they were killed in a gunfight on the way, a Hizb spokesman told local media outlets over the phone.
The spokesperson said the doors of Hizbul Mujahideen were always open for terrorists who are part of Ansar Gazwatul Hind.
Ansar Gazwatul Hind headed by Musa has been created to divide Kashmir, he claimed.
"We will issue a detailed statement in this regard and will also expose the elements behind this conspiracy," he added.
Musa recently left the Hizbul Mujahideen and was said to be in touch with other terror organisations.
He was a close aide of top Hizb commander Burhan Wani, whose killing last year had triggered a series of attacks and massive protests against security forces in the Kashmir Valley.
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.