Technically, he wasn't in custody. He was in the hospital for a week before he died.
Fine. Then how did he sustain a mortal injury while in custody?