WILMINGTON, Del. (AP) — A Secret Service officer accused of trying to solicit sex from an undercover agent he thought was a 14-year-old girl is making a court appearance as prosecutors seek to keep him in custody until his trial.

Lee Robert Moore was scheduled to appear before a federal magistrate in Delaware on Tuesday.

READ MORE: Crisis Inside The Classroom: Baltimore County Teachers Rally, Demand Change

Prosecutors say Moore presents a safety risk and flight risk, and that he should remain behind bars pending trial.

Moore’s attorney is asking that he be released to the custody of his wife and parents at his Maryland home.

READ MORE: COVID Outbreaks At Baltimore-Area Schools Raises Concerns For Parents

Prosecutors say Moore sometimes engaged in online sex chats while on duty at the White House.

He faces a federal charge of trying to transfer obscene material to a minor, and related charges in state court.

MORE NEWS: Preventing Mass Shootings: Seizing Guns Under ‘Red Flag’ Laws From Baltimore To Buffalo

(Copyright 2015 by The Associated Press. All Rights Reserved.)