The Taliban on Wednesday released 25 security personnel who were taken hostage after an attack on a security post in Swat – with a Taliban spokesman claiming the men had pledged not to fight the group.