Three armed home invaders try to ambush homeowner: active self protection

This homeowner (correction to narration: the homeowner was male) foiled their ambush in the best way, in my opinion. How would you have handled it?