RIO DE JANEIRO — Two American swimmers were pulled off their flight to the United States by the Brazilian authorities and detained for several hours on Wednesday night, Olympic officials said. It was the latest indication that the police were skeptical of the swimmers’ claims that they had been held up at gunpoint during the Rio Games.

“We can confirm that Jack Conger and Gunnar Bentz were removed from their flight to the United States by Brazilian authorities,” a spokesman for the United States Olympic Committee said. “We are gathering further information.”

The men were released after agreeing to remain in the country and to speak with investigators about the episode on Thursday, according to officials with the United States Olympic team.

In a case that has made headlines around the world, the gold medalist Ryan Lochte said that after leaving a party early Sunday, he, Mr. Conger, Mr. Bentz and one other American swimmer were robbed by men claiming to be police officers.