Lt. Gen. Daniel K. McNeill , the American commander of allied forces in Afghanistan at the time , denied then that prisoners had been chained to the ceiling or that conditions at Bagram endangered the lives of prisoners .