In Afghanistan, Obama pledges cooperation, vows to ‘finish the job’

Story highlights

NEW: Car bomb in Kabul kills 5 after Obama visit

Facing an election at home, the president says "this time of war" will end

Romney lauds Obama visit, says Afghanistan "success" is vital

Obama and Afghan President Hamid Karzai sign an agreement on future cooperation

Kabul, Afghanistan CNN  — 

President Barack Obama, speaking early Wednesday in Afghanistan at the tail end of a surprise visit there, discussed how the war will end and promised a steady drawdown of U.S. troops.

Obama committed to pulling 23,000 troops out of the country by the end of summer and sticking to the 2014 deadline to turn security fully over to the Afghan government. He said that NATO will set a goal this month for Afghan forces to be in the lead for combat operations next year.

“We will not build permanent bases in this country, nor will we be patrolling its cities and mountains,” the president said during a nationally televised speech to the U.S. people from Bagram Air Base early on Wednesday (Tuesday evening in the United States). “That will be the job of the Afghan people.”

Read extensive excerpts of the speech

His unannounced trip was Obama’s third visit to Afghanistan since taking office. It coincided with the first anniversary of the U.S. raid that killed Osama bin Laden in neighboring Pakistan, and comes as Obama is fighting for re-election.

Hours after Obama left the country, the NATO-led International Security Assistance Force reported a loud explosion in the capital, Kabul.

Gen. Mohammad Ayoub Salangi, Kabul chief of police, told CNN it was a suicide car bomb. The blast killed five people outside a compound known as Green Village, according Sediq Seddiqi, a spokesman for Afghan Interior Ministry. An undetermined number of others also were injured.

The president promised not to keep troops in harm’s way “a single day longer than is absolutely required for our national security,” but promised to “finish the job” and “end this war responsibly.”

Obama also spoke of a “negotiated peace” and said his administration has been in direct talks with the Taliban. In March, the Afghan Taliban suspended the development of a diplomatic office in Qatar designed to allow them to hold talks with the United States, following public anger over the killing of the 16 civilians.

Finally, the president vowed: “This time of war began in Afghanistan, and this is where it will end.”

Earlier in his trip, Obama and Afghan President Hamid Karzai signed an agreement outlining cooperation between their countries once the U.S.-led international force withdraws in 2014.

Some U.S. forces will remain in a post-war Afghanistan as military advisers, but both U.S. and Afghan officials have yet to decide how many troops will continue supporting the Afghan military, and for how long.

See reactions to Obama’s surprise trip

At a signing ceremony for the Strategic Partnership Agreement, Obama said that neither country asked for the war that began more than a decade ago, but now they would work in partnership for a peaceful future.

“There will be difficult days ahead, but as we move forward in our transition, I’m confident that Afghan forces will grow stronger; the Afghan people will take control of their future,” Obama said.

Addressing Afghan concerns that America will abandon the country once its troops leave, Obama noted, “With this agreement, I am confident that the Afghan people will understand that the United States will stand by them.”

He later added that the U.S. “did not come here to claim resources or to claim territory. We came here with a very clear mission to destroy al Qaeda.”

Obama’s address came nine years to the day after then-President George W. Bush delivered his “Mission Accomplished” speech aboard the aircraft carrier USS Abraham Lincoln, announcing the end of major combat operations in Iraq.

Karzai offered his thanks to the American people for helping Afghanistan, and the presidents shook hands after signing the Strategic Partnership Agreement in the atrium of the King’s Residence, part of the Presidential Palace in Kabul.

“This agreement will close the season of the past 10 years and is going to open an equal relationship season,” Karzai added. “With the signing of this agreement, we are starting a phase between two sovereign and independent countries that will be based on mutual respect, mutual commitments and mutual friendship.”

Obama warned the Afghan people and, later, U.S. troops he met with, of difficult days ahead. In remarks to troops at Bagram, Obama sounded emotional as he said that soldiers could see friends get hurt or killed as the mission winds down.

“There’s going to heartbreak and pain and difficulty ahead, but there’s a light on the horizon because of the sacrifices you’ve made,” he said.

The security risks in Afghanistan seemed particularly pronounced given the secretive nature and timing of the trip. Obama landed in Afghanistan in the cover of darkness, and the signing ceremony occurred in the early morning hours.

Back in the United States, politicians reacted to the president’s visit – some with praise, others claiming it was politically motivated.

Presumptive GOP presidential nominee Mitt Romney said, “I am pleased that President Obama has returned to Afghanistan.”

Sen. James Inhofe, R-Oklahoma, was less supportive.

“Clearly, this trip is campaign-related. We’ve seen recently that President Obama has visited college campuses in an attempt to win back the support of that age group since he has lost it over the last three years. Similarly, this trip to Afghanistan is an attempt to shore up his national security credentials, because he has spent the past three years gutting our military,” he said in a statement.

The Strategic Partnership Agreement provides a framework for the U.S.-Afghanistan partnership for the decade after the U.S. and allied troop withdrawal, according to senior administration officials who briefed reporters on the flight.

Specific levels of U.S. forces and funding are not set in the agreement and will be determined by the United States in consultation with allies, the officials said on condition of not being identified.

Noting the anniversary of the bin Laden mission, the officials called it a resonant day for the Afghan and American people.

More than 130,000 troops from 50 countries serve in Afghanistan. The United States is the largest contributor, providing some 90,000 troops, followed by the United Kingdom (9,500), Germany (4,800) and France (3,600).

But war that began with widespread approval in 2001 is now increasingly unpopular in Europe and the United States. The latest CNN/ORC International poll in late March show 55% of respondents would like to see the U.S. remove all its forces before 2014.

More than 2,700 troops from the United States and its partners have died in the conflict. The majority of them American.

In 2011, the United States outlined its plan to withdraw its troops from Afghanistan by the end of 2014. The move was followed by withdrawal announcements by most of the NATO nations.

Last week, Afghan National Security Adviser Rangin Daftar Spanta and U.S. Ambassador Ryan Crocker initialed the text that outlined the kind of relationship the two countries want in the decade following the NATO withdrawal.

The deal had been long expected after Washington and Kabul found compromises over the thorny issues of “night raids” by U.S. forces on Afghan homes and the transfer of U.S. detainees to Afghan custody.

It seeks to create an enduring partnership that prevents the Taliban from waiting out a U.S. withdrawal to try to regain power, the senior administration officials have said.

Obama visited Afghanistan in March 2010 and returned in December of the same year. He also visited Afghanistan in 2008 as a presidential candidate.

CNN’s Tom Cohen, Barbara Starr, Keating Holland, Nick Paton Walsh and journalist Masoud Popalzai contributed to this report.