Inmate who left guard 'close to death' in attack was moved f