Authorities identified two of the detainees as brothers of Hamed Abderrahaman Ahmed , a Spaniard who spent two years in detention at the U.S. naval base in Guantanamo Bay , Cuba , after his 2001 capture near the Afghan-Pakistani border .