It certainly wasn't the FBI's intention to undermine the AP's credibility. They tried to keep it a secret that they had used this tactic. Only the user of the MySpace account "timberlinebombinfo" saw the fake news story.
They did not try to keep it secret because they could not. They were required to disclose the tactic in the court proceedings, explaining how they identified the suspect.