Modifying a SWEP so that it kills the attacker if they miss a shot on a player

As the title suggests, I’d like to modify a SWEP so that if they miss a shot on a player, they die. Any snippets of code or suggestions would be much appreciated. Thanks.

More specifically, the callback. If the trace doesn’t hit a player kill the weapon’s owner.