A Boston Police officer has agreed to plead guilty to running a secret nightclub where a shooting occurred in 2021.