A detainee described being subject to electric shocks by soldiers using an instrument that he said “looked like a pen.”