The problem with a knife is that it's a lot more involved to use. Unless you had supreme conviction for it, it'd probably be languid, sloppy and unclean. A gun requires a simple trigger pull which is less intimidating psychologically. I think if you aimed beneath the occipital into the prefrontal cortex you would knock yourself out and die even with a pellet.