MOSCOW — He arrived at the meeting with two wigs — the blond one on his head held in place by a baseball cap, a brown one in his knapsack, which also held a compass, a Moscow street atlas and $130,000 in cash. He was an operative for the Central Intelligence Agency, Russian officials say, and his goal was to recruit a Russian security officer as a spy.

He even carried a letter offering “up to $1 million a year for long-term cooperation” and signed affectionately, “Your friends.”

On Tuesday, the American, identified as Ryan C. Fogle, who had been officially posted in Russia as the third secretary of the political department of the United States Embassy, was ordered to leave the country by the Russian government, which officially declared him “persona non grata.”

In a move that appeared to be as much stagecraft as spycraft, the Russian Federal Security Service, the F.S.B., took the unusual step of releasing a video showing the arrest of Mr. Fogle, including him face down on a street as a Russian agent pinned his hands behind his back.