Brazilian President Jair Bolsonaro said that it was wrong for him to tell a journalist that he had "the face of a homosexual".
"I was wrong. I shouldn't have said it," the country's far-right leader told reporters at the presidential residence in Brasilia, according to the news website G1.
The original comment by the president came yesterday, in response to a reporter's question about an investigation into his eldest son, Senator Flavio Bolsonaro, for alleged money laundering when he was a regional deputy.
Pressed by the reporter, a visibly flustered Mr Bolsonaro replied: "You have the face of a homosexual, but that doesn't mean I'm going to accuse you of being a homosexual."
His comments, while welcomed by some Bolsonaro supporters, sparked a sharp reaction from media groups.
The Brazilian Association of Investigative Journalism (ABRAJI) accused Mr Bolsonaro, a frequent critic of the press, of "promoting the moral harassment of journalists ... (whose work) is fundamental for democracy".
In an editorial yesterday, the daily O Estado de S.Paulo, one of the country's largest papers, said Mr Bolsonaro lacked "the necessary decorum for the job".
It said his behaviour "shames citizens and compromises the country's reputation".
Mr Bolsonaro, who is nearing the end of his first year in office, told Playboy magazine in 2011 that he "wouldn't be able to love a gay son ... I'd prefer a son to die in an accident".
On Friday, Mr Bolsonaro lashed out at prosecutors in Rio de Janeiro for allegedly leaking information about the inquiry into his son. "The investigation began last year and they've still found nothing," the president said.
Two days earlier, police had raided several properties owned by the younger Bolsonaro, by his former aides or by President Bolsonaro's ex-wife.
Flavio Bolsonaro, who has repeatedly denied any wrongdoing, is suspected of having employed phantom employees whose salaries were then used to buy an apartment and a chocolate shop.