Former officer sentenced after conviction for fatal shooting of teenager