Afghan officials say the U.S. military has handed over six Afghan villagers who were detained during a raid early Tuesday at a compound where troops discovered bomb-making materials .