I was thinking the same thing, especially in a small space. A shotgun is my personal choice for home protection but it should have a short barrel for use in a hallway or tight space.
I have trained martial arts, US Army close quarters combat, Infantry weapons and even Mount operations. I have taught SWAT teams for the US Military Prison (USDB at Ft Leavenworth.
In my opinion, the two best weapons for a narrow hallway are a short barreled shotgun (#8 or #9 bird shot) backed up with either a hatchet or a Kukri (Gurkha knife)