A Homeland Security Department spokesman was held without bail Wednesday on felony charges of sexually preying on a detective posing as a 14-year-old girl through explicit online conversations. He was quickly suspended without pay from one of the nation’s top crime-fighting agencies.

The arrest of Brian J. Doyle, 55, raised doubts about the ability of an agency responsible for safeguarding the country to ensure the security credentials of its own people.