The prisoners were considered some of the most dangerous men among the hundreds of terror suspects locked behind the walls of a secretive and secure American military detention center in Bagram , Afghanistan .