WASHINGTON—Militants from the group Islamic State released a video Tuesday that appeared to show the beheading of American journalist James Foley in an act of retribution for U.S. airstrikes on the group in Iraq.

The graphic video, which U.S. intelligence agencies were trying to verify, raised new dangers for President Barack Obama's Middle East policy. It showed a masked militant, speaking in British-accented English, threatening to...