I believe you are “allowed” to discharge a weapon anywhere in defense of your life. A pistol isn’t worth much without being fired in that kind of situation.
Don’t count on it ~