Ex-officer charged in shooting appears in court