Berean Study Bible (BSB) - Joshua 8:21 >

When Joshua and all Israel saw that the men in ambush had captured the city and that smoke was rising from it, they turned around and struck down the men of Ai.

Jewish Publication Society of America Version (JPS1917) - Joshua 8:21 >

And when Joshua and all Israel saw that the ambush had taken the city, and that the smoke of the city ascended, then they turned back, and slew the men of Ai.