See 36
Either Khan's name was leaked intentionally to protect another mole still inside al Qaeda, or Khan was found out by al Qaeda as a result of Ghatani's capture and he had to be moved to a secret location and it made no difference if he was outed.
Basically, I don't think we have the full story on this yet. I repeat, there's no way the administration would out a mole inside al Qaeda.