NATO officials say British troops are pulling out of a troubled district in southern Afghanistan after reaching an agreement with local elders and Afghan officials .