And how many would have died if neither side had a gun?
.....Which is a moot point. Both firearms were illegal under New Zealand law. The attacker was committing a criminal murder. So he also had an illegal firearm. So what?
The murderer failed to account for the guy with an illegal firearm which he planned to use for self defense.