There are many cases of law enforcement being imprisoned for shooting people while on duty. It is well established that enforcing laws does not give you carte blanche to shoot people