A detainee described how a military commander held a gun to his head next to an open grave and told him he would be killed if he did not confess.