Exodus 22:2 - Web

If the thief is found breaking in, and is struck so that he dies, there shall be no guilt of bloodshed for him.