Plea deal in works for ex-cop charged in robbery