FORT SMITH, Ark. — An Arkansas State Police captain resigned Friday after being charged with loitering after undercover Fort Smith police officers say he asked them to perform a sex act while he watched.

A statement from state police said Capt. Bryan Davis submitted a one sentence memo that reads, “Please accept this as my letter of resignation from the Arkansas State Police to be effective immediately.”

Davis had been on paid administrative leave since he was arrested and released Tuesday.

Col. Bill Bryant, the state police director, accepted the memo, according to the police statement.

“I am disappointed by the alleged incident that has led to this resignation,” Bryant said in the statement. “However, I believe it is of the utmost importance that we, as law enforcement officers, represent ourselves in an honorable and professional manner, and exhibit higher standards, both in our private lives and in our public duties, exceeding the principles and expectations of others.”

A Fort Smith police report says two detectives, a man and a woman, were conducting a random check for sexual activity in the city’s parks when they saw a parked pickup occupied by Davis. Detectives say Davis, who was not in uniform, flashed his vehicle’s headlights at them and appeared to be performing a sex act.

According to the report, Davis then approached the detectives and got into the detectives’ vehicle. He was then arrested.

It was not immediately clear whether Davis has an attorney who could comment on the allegations.

Sebastian County prosecuting attorney Dan Shue said Davis be scheduled to be arraigned on Sept. 8. If convicted, Davis faces up to 30 days in jail and a fine of up to $500.

State police spokesman Bill Sadler said Davis has been a commander of Troop H since May 2014. Troop H covers Crawford, Franklin, Logan, Scott and Sebastian counties.

He joined state police as a law enforcement officer in 1990 and served in the department before that as a civilian.