New Zealand athlete Zane Gordon Robertson was Thursday detained for five days to enable police to complete investigations into a case where he is accused of illegal possession of a firearm.
He is also facing allegations of attempted rape in Iten, Elgeyo Marakwet County.
On Wednesday morning, police forced their way into his house and managed to recover an AK 47 and 23 bullets.
The marathoner has built a home and settled in the area.
He has been banned from participating in athletics over doping allegations.
He was arrested and produced in court where the prosecution on Thursday told the court in Iten the athlete and Titus Kiprotich were arrested in Mindililwo sub-location in Keiyo North Sub County for the offence of attempted rape and being in possession of a firearm without a license.
The two appeared before Principal Magistrate Emily Kigen at Iten Law Courts.
Police said they need more time to conclude investigations, noting that the athlete, who is serving a suspension from the Athletics Integrity Unit (AIU) for anti-doping violations, is a flight risk.
The rifle found and ammunition will be taken to the National Police Forensic Laboratory for ballistic analysis to establish if it has been used to commit a crime in the country.
The investigating team is also expected to visit the Immigration Department to establish the status of Robertson and his presence in the country.
The court allowed the accused to be taken to hospital after a request was placed by his lawyer, Isaac Sambu.
His case will be mentioned on September 28.
"We made the arrests immediately," Keiyo Subcounty police boss Tom Makori said.
Robertson holds the Oceania and New Zealand long-distance records and also bagged a bronze medal in 5,000m at the 2014 Commonwealth Games.
Robertson was banned by the Sports Tribunal of New Zealand for eight years after failing a drug test.
He received a four-year ban for the use of EPO and an additional four years for providing falsified records and false testimony, effectively ending his athletics career.