Mouth/edge of the sword
Here’s what it means
People were killed by the sword in battle or judgment.
Why the Bible says it this way
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.
A helpful detail: The blade’s cutting edge is pictured as a mouth that consumes. The deaths described are real.