Tens of thousands of Afghans have been forced from their homes by fighting with Pakistani forces along the border in recent days, the United Nations said Tuesday.