LITTLE ROCK — A federal judge ruled Wednesday that a former Cross County district judge accused of dismissing charges in exchange for opportunities to take nude photos of male defendants must remain behind bars until his trial.

Joseph Boeckmann, 70, of Wynne was arrested Tuesday on a federal indictment charging him with fraud, bribery and witness tampering. Prosecutors say Boeckmann dismissed charges or gave lenient sentences in exchange for opportunities to photograph young men defendants posing nude, performing sexual acts, being paddled by Boeckmann or bending over to pick up aluminum cans or trash as part of what Boeckmann called “community service.”

Boeckmann also is accused of seeking to persuade two people to lie to a grand jury that was investigating him.

During a hearing Wednesday in U.S. District Court in Little Rock, U.S. Magistrate Joe Volpe ordered that Boeckmann be detained until his trial, currently set for Nov. 21, but the judge said he was open to revisiting the matter if Boeckmann’s lawyer submits a motion and the government submits a response.

Boeckmann faces eight counts of wire fraud and honest services wire fraud, one count of bribery involving federal programs, 10 counts of violating the federal Travel Act in connection with a bribery scheme and two counts of witness tampering.