He was already bleeding when he got to the boat.
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.