Asif Rahman, who worked overseas, was arrested on Tuesday by the F.B.I. and faces two counts of violating the Espionage Act.