In the same statement, the general’s staff described the meeting as a “courtesy visit” because the C.I.A. official was wrapping up a posting in Brazil.
In Washington, a C.I.A. spokesman declined to comment on the matter.
“We’ve seen the reports,” said a spokeswoman for the United States Embassy in Brasília, explaining that the embassy could not confirm or deny them.
United States law makes it a federal crime to reveal the identity of covert intelligence officers, and the Obama administration pressed a crackdown on such leaks. Still, the episode in Brasília offered a reminder that intelligence agencies in other countries can hew to different rules.
The Brazilian Intelligence Agency, or A.B.I.N., has come under scrutiny for disclosing the identities of people vying to become agents, while Brazilian spymasters have complained about the ease with which intelligence operatives are called to appear before congressional hearings, which are televised.
“Brazil is not cut out for great power machinations,” said João Augusto de Castro Neves, a political analyst who came across the information regarding General Etchegoyen’s schedule in a newsletter and sent out a message on Twitter about his find.
“I decided to actually read the whole thing and noticed it,” said Mr. Castro Neves, Latin America director at the Eurasia Group, a political risk consultancy.
The disclosure offered a distraction from other troubles faced by the government of President Michel Temer, who has sought to restructure Brazil’s intelligence establishment since rising to power last year after the ouster of his predecessor, Dilma Rousseff. Mr. Temer, a deeply unpopular leader, is resisting calls to resign after he was secretly recorded seeming to endorse the obstruction of anticorruption investigations.
Curiously, this may not even be the first time that a C.I.A. official’s identity has been revealed in Brazil in such a nonchalant way….