This reference from Germany indicates that self-defense is lawful even if it ends the attacker's life, as long as the violence is not excessive for the situation.
https://se-legal.de/services/criminal-defense-lawyer/self-de...