Here "sword" represents the army of the enemy. Alternate translation: "When the Israelites are outside, the enemy army will kill them" (See: [[rc://en/ta/man/jit/figs-metonymy]])
Yahweh speaks of being afraid as if it were a person who comes into a house and kills those who live in it. Alternate translation: "you will die because you are afraid" (See: [[rc://en/ta/man/jit/figs-personification]])