Anytime you punch a police officer in the face while he is sitting in his police car, you can expect to get shot and killed. Doesn't matter what started the altercation, or what happened otherwise. Black, white, Asian, or extraterrestrial--doesn't matter. At 18 years old, everyone knows that. Sounds like this kid had a criminal history, and should definitely know the repercussions of assaulting an officer.
What's more foolish is the morons who loot/destroy stuff. If you live in a community, and consider the community your home, why the fuck would you destroy your own home?