no one had ever successfully guessed that he was a twenty-four year veteran of the bureau , having served capably in a variety of capacities from recruitment , to counterterrorism operations , to heading task forces investigating such varied crimes as child prostitution and gangland violence .