Taliban fighters intensified clashes with Afghan forces and attacked militias allied with the government, officials said.