Ex-officer sentenced in 2010 fatal shooting case