Agents were looking to detain a Mexican national, according to court documents. Instead, they arrested a Venezuelan citizen who entered the U.S. legally.