This post suggests that the New York Times outed Khan first and that the administration only confirmed it after his named had already appeared in the paper:
The New York Times obtained Khan's name independently, and U.S. officials confirmed it when it appeared in the paper the next morning.
If this is true, the journalist and editors responsible for this need to be sat down and talked to by some scary feds.