I was trained extensively in Close Quaters Combat, so my choices may seem surprising to some, especially gun owners.
Day light hours...Grab something short and sharp and become a hole in space around a corner, the idiot came into my house either not knowing I am home or he's after me. Letting him know where I am is definately not in my favor...NO Noise!
Night Hours...Same as above, but now I can look for him. If better weapon options become available during the search, I'd take advantage. I would NEVER EVER chose a gun in CQB in this situation, I can disarm, maim, and worse far faster than the invader can draw a bead and fire...Surprise is on my side.
Last I would call 911 to have them clean up the mess.