Another thought to add.
If someone of O'Sensei's skill level were placed in the exact same senario....it may be wrong if he/she killed the assailant.
If it were someone of my skill level...it may not be wrong.
Again, ethically speaking...not legally.
I would submit legally that both would be okay.