The officials say four Afghan soldiers were wounded in the fighting , which ended with the insurgents fleeing into nearby mountains , carrying their wounded .