KABUL, Afghanistan — In the latest sign of intensifying Taliban violence across Afghanistan, insurgents overran two districts in the north and the west of the country on Sunday, in one case shooting patients at a hospital and torching government facilities, Afghan officials said.

With the Taliban’s annual offensive in full swing, after the opium harvest and the fasting for the holy month of Ramadan, Afghan forces have been engaged with the Taliban in 21 of the country’s 34 provinces, according to the country’s minister of defense, Gen. Tariq Shah Bahrami. The frequency of attacks across several provinces in recent days and the casualty rate among the security forces, particularly the police and government militiamen, have raised alarms.

The uptick in violence comes as the Trump administration is considering sending a few thousand more troops, adding to the force of about 8,700 Americans already in the country to bolster the Afghan security forces.

In the meantime, the United States military has intensified airstrikes in support of the Afghan forces. In the first six months of 2017, American aircraft released more than 1,600 weapons, according to the United States Central Command, nearly 20 percent more than the number for all of 2016. In Helmand Province alone last week, American forces carried out an average of 10 strikes a day.