A Fredericksburg police captain is facing charges after he allegedly took a teenage boy he met online to a motel, investigators said.

Brent Mitchell Taylor, 46, was arrested Saturday and charged with contributing to the delinquency of a minor, the Stafford County Sheriff’s Office reported.

According to investigators, deputies found a 17-year-old boy walking alone on Warrenton Road about 2:40 a.m. Saturday. The teenager told deputies that he had locked himself out of a room at the nearby Motel 6 and was waiting for the man who had rented the room to return.

Deputies were waiting at the motel when that man, identified as Taylor, a 24-year-veteran and captain in the detective division of the Fredericksburg Police Department, returned later that morning.

Investigators said that Taylor made initial contact with the teenager on the Internet and picked up the teen in Fairfax without parental permission before taking him to the motel.

The sheriff’s office has not revealed what activities went on in the motel room.

Taylor has been placed on administrative leave pending an investigation.

More from PostLocal:

Fairfax County invites FBI to relocate headquarters there

Man gets 100 years for series of robberies

Federal Eye: It’s buyout time

Military mom, twins relish reunion

Tom Sietsema’s cheap eats

Metro fare hike proposal infuriates riders