Fortunately he is a cop in Chicago, the people there are not allowed to protect themselves. If he didn't have a gun, he would have been like all the other people and had to wait for the cops to show up and take a report.
I don't think anyone would have been shot if they just handed over the money and keys, but you never know. At least this time the good guys won.