Exodus 22:2

22:2 “If a thief is caught breaking in and is struck so that he dies, there will be no blood guilt for him.

Exodus 22:8

22:8 If the thief is not caught, then the owner of the house will be brought before the judges to see whether he has laid his hand on his neighbor’s goods.