The casualties were another reminder of how badly Afghanistan is bleeding. Over the past year, about 10,000 of the country’s security forces have been killed and more than 16,000 others wounded, according to a senior Afghan government official. The Taliban losses are believed to be about the same.

And about 10 civilians were killed every day on average over the first nine months of 2017, data from the United Nations suggests.

The surge in violence across the country, particularly deadly attacks that have shut down large parts of Afghan cities, comes as the government is in disarray.

President Ashraf Ghani has struggled to build consensus and has recently found himself in a protracted showdown with a regional strongman, a dispute that has taken up much of the administration’s energy. The strongman, Atta Muhammad Noor, a powerful governor, was fired by the president but has refused to leave his post, raising fears that escalating political tensions could further undermine the country’s fragile security.