Jane Onyanga-Omara

USA TODAY

U.S. Olympic swimmer Jimmy Feigen agreed to donate about $11,000 to a Brazilian charity Friday to settle a dispute over a claimed robbery in Rio de Janeiro, according to reports.

Breno Melaragno Costa, Feigen's lawyer in Rio, announced the agreement early Friday after meeting with with a judge and prosecution officials at a police station, ABC and the Associated Press reported.

According to the reports, Costa said Feigen agreed to donate 35,000 Reals to Reaction Institute, a Brazilian charity. Costa said Feigen's passport would be returned and he would be able to leave Brazil after making the payment, ABC said.

Feigen's lawyer said that under Brazilian law, a donation can be made to avoid prosecution for minor offenses but he did not say what charge was being contemplated against his client, according to the Associated Press.

Earlier in the week, a Brazilian judge ordered Feigen and Ryan Lochte to stay in the country following an incident at a local gas station, though that order came after Lochte had already returned to the U.S.

Gunnar Bentz and Jack Conger, who were with Lochte at the gas station last Sunday morning, have been allowed to leave Brazil, U.S. Olympic Committee CEO Scott Blackmun said in a statement late Thursday.

Brazilian police on Thursday said their investigation revealed the swimmers fabricated a story about being pulled over by men dressed as police and robbed at gunpoint.

Blackmun said "we apologize to our hosts in Rio and the people of Brazil for this distracting ordeal in the midst of what should rightly be a celebration of excellence."

Contributing: Thomas O'Toole

PHOTOS: Best from the Olympics on Thursday