NATO says two alliance soldiers have been killed and three others wounded in a firefight with Taliban insurgents in eastern Afghanistan .