A former U.S. ambassador to Bolivia was working on behalf of Cuban intelligence officials even before he began a decades-long career in the State Department that included a stint in the White House during the Clinton administration, federal prosecutors said Monday.