I'm sorry, I've been here for a few minutes looking for the scripture that says if somebody breaks into your house and you kill the thief, the thief, basically, gets what he/she deserve.
Edit: found it: Exodus 22:32 (“If a thief should be found in the act of breaking in and he does get struck and die, there is no bloodguilt for him. 3 If the sun has shone forth upon him, there is bloodguilt for him.)
Yet, there was a restriction on this law. If the thief gave up and was willing to go to the justice system, then you couldn't kill the thief, you had to turn him/her over to the authorities.
Today it is the same way.