If the facts hold as in the PO then it looks like (b) might be justifiable cause.
Playing Devil's Advocate :
Man comes out of window, bang....don't [bleep] move....How does "b" apply?
George
(b) would apply as the guy coming out the window was committing a burglary. That said it would be hard to prove he knew he was committing a crime. That is why I said might.
I might have done this differently. The warning shot sounds like it might be the problem causer in this one. But I was not there and my second guessing any part of this is not needed. Facts and truth would be what is needed in this case just like all others.