The officials say heavy fighting between the troops and the insurgents hiding in a building in the province 's Chaparhar district began late Wednesday and lasted for hours .