The murders of 43 college students in Mexico were a case of mistaken identity, when a criminal group mistook them for a rival gang, says the country's attorney general.