A 28-year-old man who shot and killed an Afghanistan war veteran outside a bar in Colorado Springs has been sentenced to 30 years in prison.