That statute only applies to an “officer, employee, contractor, or consultant of the United States”, not a foreign spy.
OK, but I believe The Secretary of State, by definition, is “an employee of the United States.”