They tried to escape by using a car and two motorcycles and were chased up to a branch road where they opened fire at the cops, forcing the security personnel to retaliate, the CTD spokesperson said.
"When the shootout ended, six of the terrorists were dead and the rest had fled," the spokesperson was quoted as saying by 'Dawn'.
The CTD men seized arms and ammunition, including three Kalashnikov rifles, three pistols, 2 kilogrammes of explosives, prima cords and a cache of bullets, the report said.
The bodies were taken to a hospital to identify the slain terrorists.
Separately, the police launched a combing operation in the area to arrest the escaped suspects.
The CTD's investigation team had identified one of the deceased as Haji Muhammad alias Pathan, who was accused of being involved in the abduction of Shahbaz Taseer, son of the late governor Salmaan Taseer, a senior police official was quoted as saying.
He said Pathan had been declared a proclaimed offender and his name was listed in the Red Book (a list of most wanted militants).
Pathan had rented a house in Valencia Town in Lahore, where Taseer's kidnappers had kept him for several days before taking him to the Federally Administered Tribal Areas.
An FIR against Pathan was registered with the Gulberg police in Lahore.
The official said that Pathan belonged to two banned organisations - TTP and the Islamic Movement of Uzbekistan.
"Efforts are under way to identify the remaining five terrorists," the official said.
Shahbaz was kidnapped near his company's head office in Gulberg on August 26, 2011. He was released earlier this year.
His father Salmaan Taseer was killed in 2011 for criticising the blasphemy laws.