According to a criminal complaint, O'Kimosh started communicating with the teenager in January 2017.
On November 1, he allegedly sent an inappropriate picture of himself to an undercover officer posing as the girl, court documents said.
O'Kimosh's lawyers argued Tuesday that he should be released based on his ties to the area and lack of criminal history, but prosecutors argued his actions should prevent him from being released.
The judge agreed with the prosecution, not allowing O'Kimosh's family to post a cash bond for his release. He's concerned O'Kimosh could be a danger to the community if let go while the case proceeds, he said in court.