A U.S. court has found a former CIA contractor guilty of assaulting an Afghan detainee , who later died of his injuries .