And if you really want to scare off someone? Burn some ammo in a can. Pretty sure it’s illegal in the US, but if you are in a life-and-death struggle in wartime, it’s effective enough to hold back an entire platoon if they don’t know what you’re doing.
Just be sure to have a fuse with a long enough delay for you to reach safety.