The tribesmen had previously given refuge to the foreign militants , many of whom fled a U.S.-led offensive in Afghanistan in 2001 .