"let the people of Ai think that the Israelites were defeated" or "let the people of Ai think that they had defeated the Israelites"
the army of Ai
The army of Israel fled.