This is what Scripture says: "She put her hand to the distaff" (Proverbs 31:19) — this is Jael, who did not kill him with a weapon of war but with a tent peg, as it is written, "She put her hand to the tent peg" (Judges 5:26). And why did she not kill him with a weapon of war? In order to fulfill what is said, "A man's gear shall not be on a woman" (Deuteronomy 22:5).
Why Jael Used a Tent Peg and Not a Weapon
Yalkut Shimoni on Nach 56:2
זהו שאמר הכתוב ידיה שלחה בכישור זו יעל שלא הרגתו בכלי זיין אלא ביתד דכתיב ידה ליתד תשלחנה, ומפני מה לא הרגתו בכלי זיין, לקיים מה שנאמר לא יהיה כלי גבר על אשה: