Special agents with expertise in immigration law and counterterrorism are stationed at diplomatic posts around the world to help State Department officials prevent ineligible applicants from receiving visas.