But federal prosecutors said he was an agent of Cuba’s General Directorate of Intelligence, known as the DGI.