Foley was tortured before his beheading