Journalist James Foley - beheaded by ISIS (Islamic State) - in Iraq last night - had worked in a number of conflict zones in the Middle East, but the danger did not stop him from doing the job he loved.

Captured and held for six weeks while covering the uprising in Libya, he knew the risks when he went to Syria two years ago to cover the escalating violence there.

Mr Foley was snatched again in Syria in November 2012 when the car he was travelling in was stopped by four militants in a battle zone that Sunni rebel fighters and government forces were trying to control.

Two US officials said they believe Mr Foley was the person executed by Islamic State militants in a video posted online.

Mr Foley's family confirmed his death on a webpage created to rally support for him. His mother, Diane Foley, said in a statement on the webpage he "gave his life trying to expose the world to the suffering of the Syrian people".

At Mr Foley's family home in Rochester, New Hampshire, a light burned yellow in a centre upstairs window and a yellow ribbon adorned a tree at the foot of the driveway. The Rev Paul Gousse, of Our Lady of the Holy Rosary, where the Foleys are parishioners, spent about 45 minutes at the house but left without commenting.

Mr Foley, 40, and another journalist were working in the northern province of Idlib in Syria when they were kidnapped near the village of Taftanaz.

After Mr Foley disappeared, while contributing video for Agence France-Presse and the media company GlobalPost, his parents became fierce advocates for him and all those kidnapped in war zones. They held regular prayer vigils and worked with the US and Syrian diplomatic corps to get whatever scraps of information they could.

Diane Foley, asked in January 2013 if her son had reservations about going to Syria, said softly: "Not enough."

She wrote on the family's webpage: "We thank Jim for all the joy he gave us. He was an extraordinary son, brother, journalist and person."

Mr Foley had seen the dangers to journalists up close.

Upon his release from Libya and return to the United States, he recalled in an interview with the Associated Press seeing a colleague, South African photographer Anton Hammerl, killed by forces loyal to Libyan leader Muammar Gaddafi. He tried to pull his friend's body out of harm's way but was turned back by heavy fire.

"I'll regret that day for the rest of my life. I'll regret what happened to Anton," Mr Foley said. "I will constantly analyse that."

Mr Foley also covered the war in Afghanistan but called the Libyan fighting the worst he had ever experienced to that point.

Mr Foley grew up in New Hampshire and studied history at Marquette University. He later taught in Arizona, Massachusetts and Chicago before switching careers to become a journalist, which he viewed as a calling.

"Journalism is journalism," Mr Foley said. "If I had a choice to do Nashua (New Hampshire) zoning meetings or give up journalism, I'll do it. I love writing and reporting."

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.