וַיָּ֨שָׁב יְהוֹשֻׁ֜עַ בָּעֵ֤ת הַהִיא֙ וַיִּלְכֹּ֣ד אֶת־חָצ֔וֹר וְאֶת־מַלְכָּ֖הּ הִכָּ֣ה בֶחָ֑רֶב כִּֽי־חָצ֣וֹר לְפָנִ֔ים הִ֕יא רֹ֖אשׁ כָּל־הַמַּמְלָכ֥וֹת הָאֵֽלֶּה׃
И возвратился Иисус в то время, взял Асора и поразил царя его мечом, потому что Асор прежде был главой всех тех царств.
Metzudat David
Before Joshua captured Chatzor, as its written in Joshua 11:1, he smote it with a sword, but not its king. After he was captured (he saved himself?) and the king of Charoshet goyim, it was a place where all froms of iron work was done.
Rashi
וברצונם עקרו שור AND IN THEIR SELFWILL THEY LAMED AN OX — they desired to exterminate Joseph who is called שור, as it is said, (Deuteronomy 33:17) “His firstling bullock (שורו) (Joseph), majesty is his”. עקרו means in old French essarter. It has the same meaning as in (Joshua 11:6) “Thou shalt hamstring (תעקר) their horses”.