KPO attack ‘mastermind’ killed in CTD encounter