RIO DE JANEIRO — Three U.S. Olympic swimmers were prevented from leaving Brazil on Wednesday night as differences emerged in their accounts of an armed robbery they said they endured last weekend.

The U.S. Olympic Committee said Wednesday evening that swimmers Jack Conger and Gunnar Bentz were removed from their return flight to the U.S. by Brazilian authorities. The G1 news site reported that fellow swimmer James Feigen had been prevented from leaving the country, as well.

Earlier Wednesday, a Brazilian judge ruled that the passports of Feignen and Ryan Lochte should be seized after discrepancies emerged in their accounts of what transpired in the early hours of Sunday morning, after leaving a dance party at the Club France official Olympic hospitality venue.

Judge Keyla Blanc, from a special magistrate court set up for big sporting events, ruled that there were “possible divergences” in the versions of the robbery that the swimmers gave police.

In a statement released on the court’s website Wednesday, Blanc said that in Lochte’s testimony to police, he said the athletes were stopped early Sunday by one robber who demanded all their money: $400. Blanc said that Feigen, however, told police that the athletes were surprised by multiple robbers but that only one was armed.

Security footage published by the Daily Mail showed the men arriving at Rio’s Athletes’ Village apparently unfazed by their ordeal. Brazilians have reacted with anger to what many perceived as a false account of a robbery and began conjecturing over what might have happened.

Lochte’s lawyer Jeff Ostrow told the Post that his client was already back in the States.

News of the robbery broke Sunday, and confusion soon followed. A spokesman for the International Olympic Committee initially said the report of a robbery was “absolutely not true.” The spokesman later reversed himself, apologized and attributed the erroneous denial to information the IOC had been given by the U.S. Olympic Committee.

Lochte later told USA Today that he and the other swimmers did not immediately tell the USOC about the incident because “we were afraid we’d get in trouble.”

The swimmers had been at a birthday celebration and dance party at Club France, an Olympic hospitality venue beside the Rodrigo de Freitas Lagoon, with Thiago Pereira, a Brazilian swimmer, and Pereira’s wife, Gabriela Pauletti. Pereira and Pauletti left the party before the Americans, who told police that they caught a taxi at a nearby gas station.

Lochte told NBC that he and three other swimmers, including Feigen, were robbed when their taxi was stopped. The others were made to lie on the ground, but Lochte said he refused.

“And then the guy pulled out his gun, he cocked it, put it to my forehead, and he said, ‘Get down,’ and I put my hands up. I was like, ‘Whatever,’ ” he said.

Another doubt highlighted by the Brazilian judge concerns the time the swimmers reached the Athletes’ Village. Security camera footage obtained by the Daily Mail shows them passing through a security check just before 7 a.m. – at least four hours after they were supposed to have left the party. In the footage, Lochte jokingly hits Feigen over the head with his Olympic credential.

“It was perceived that the supposed victims arrived with their physical and psychological integrity unshaken, even making jokes with each other,” the judge said, according to the court statement.

Lochte is back in the United States. Feigen is still in Brazil. In a statement, the U.S. Olympic Committee declined to disclose the whereabouts of any of the swimmers.

“Local police arrived at the Olympic Village this a.m. and asked to meet with Ryan Lochte and James Feigen and collect their passports in order to secure further testimony from the athletes. The swim team moved out of the village after their competition ended, so we were not able to make the athletes available,” Patrick Sandusky, chief external affairs officer of the USOC, said in an emailed statement.

“Additionally, as part of our standard security protocol, we do not make athlete travel plans public and therefore cannot confirm the athletes’ current location. We will continue to cooperate with Brazilian authorities.”

Lochte’s lawyer, Jeff Ostrow, confirmed that his client is back in the United States.

“Ryan left the country after his events, after fully meeting with the Brazilian authorities, the State Department, the FBI – everybody who wanted to meet with him,” Ostrow said. “He made himself available and provided the Brazil police with a statement. He wasn’t told to stay around or that the authorities had other questions, but we told them we were still available if they had further questions. He was planning on leaving, and he left. I don’t know what they’re trying to do down there. If they need to get in touch with me, we have always been fully cooperating. Nobody has reached out to me. Nobody has reached out to Ryan.”

Ostrow also said that the incident happened “exactly the way Ryan described it” under oath to Brazilian police and that he believes that Lochte’s account of the incident to the police was the same as the one he told on the “Today” show.

“They were robbed at gunpoint – the way he described it,” Ostrow said.

The San Antonio Express-News reported that Feigen, still in Brazil, declined to comment when contacted by the newspaper.

“I can’t talk right now,” Feigen said. “I’m still in Brazil, and an interview is going to have to wait.”