Easy ~ he shot himself earlier ~ lost the gun (which was instantly recovered and put in a very safe place by somebody who needed a gun) ~ so when he was finally apprehended he didn’t have his gun.
Check the unusually generous man who was first to peek under the canvas. Maybe we know why he didn't get shot?
Regards,
GtG