It showed the apparent beheading of what the group claimed were two Iraqis who spied for the U.S. military .