A retired Buffalo police officer has pleaded guilty to charges in connection to a shooting outside the Marine Drive Apartment complex in 2024.