BOGOTA, Colombia — Western-backed Afghan defenses will not break under the weight of Taliban violence in advance of scheduled parliamentary elections in October, U.S. Defense Secretary Jim Mattis said.

In his most detailed comments on the Taliban’s assault on the eastern city of Ghazni since it began Aug. 10, Mattis said the Taliban had six objectives in and around the city and failed to seize any of them. He would not specify the six sites.

In Ghazni, provincial police chief Farid Mashal said Thursday that roads were being cleared of mines planted by Taliban who temporarily held entire neighborhoods of the city that they had besieged. The fighting continued for five days with more than 100 members of the Afghan National Security forces killed and 20 civilians. Scores of Taliban were also killed, according to Afghan officials.

Mattis said Thursday some Taliban fighters were still holed up in houses in the city "trying to get resupplied." He said businesses are reopening, and overall, "it's much more stable" in Ghazni, showing that the Taliban have fallen short.