The arrest confirms a longstanding criticism of the country’s law enforcement: that many are on cartels’ payroll.