President Obama: World is appalled by journalist James Foley’s killing