In context
21When Joshua and all Israel saw that the men in ambush had captured the city and that smoke was rising from it, they turned back and struck down the men of Ai. 22The others came out of the city to meet them, so the men of Ai were caught in the middle, Israelites on both sides. Israel struck them down until no one was left alive or able to escape. 23But they took the king of Ai alive and brought him to Joshua. 24When Israel had finished killing all the inhabitants of Ai in the open country and in the wilderness where they had chased them, and all of them had fallen by the sword until they were wiped out, all Israel returned to Ai and struck it down with the sword. 25The total who fell that day, men and women together, was twelve thousand — all the people of Ai.
