A youth pastor charged with sexually abusing a minor in Maryland had been serving as a children’s program leader at a church in New York state while he was still under investigation.