KABUL, Afghanistan — A large attack by the Taliban in western Afghanistan on Thursday killed at least 30 soldiers and police officers, Afghan officials said, in a sign of intensifying spring fighting across the country despite American efforts to reach a peace deal.

Hundreds of Taliban fighters stormed the center of Bala Murghab District in Badghis Province in the predawn hours, according to Abdul Waris Shirzad, the district governor. The district has come under intense insurgent pressure in recent weeks, with officials warning that it could fall unless reinforcements are sent in.

“No one is hearing our voice; no reinforcements arrived yet,” said Mr. Shirzad, who confirmed that 30 police officers and soldiers had died in the Taliban raid.

He said the insurgents had surrounded police forces in the governor’s office and soldiers on an army base. “If the government does not send more forces, there will be a disaster in the district,” he added.