French prosecutors have released a suspect in the case of the murder of journalist Jamal Khashoggi, saying the arrest was a case of mistaken identity.