A D.C. employee pleaded guilty Wednesday to an attempted sex-abuse charge for making sexual advances toward a 17-year-old girl who worked in a summer-jobs program.

Thomas Nelson made his plea in D.C. Superior Court on a a charge of attempted second-degree sexual abuse of a minor in a significant relationship, the U.S. Attorney’s Office said in a statement.

Nelson was a supervisor in the jobs program for the Department of Employment Services, and he supervised the teen. On June 29, prosecutors said, Nelson asked the teen to walk with him inside the department’s headquarters at 4058 Minnesota Ave. NE, and he made sexual advances and lewd comments.

Later that day, prosecutors said, he made more lewd remarks, touched her buttocks and thigh, and undid his pants. The young woman later told her mother, who notified D.C. police, and Nelson was arrested.

Nelson faces up to three years and nine months in prison, as well as a $37,500 fine. Nelson will also be required to register as a sex offender for 10 years. He is scheduled to be sentenced Oct. 21.