But they captured the king of Ai alive and brought him to Joshua. 