Former officer agrees to a plea deal of 15 years