President Obama on Wednesday called the videotaped beheading of New Hampshire war correspondent James W. Foley an “act of violence that shocks the conscience of the entire world.”