By PATRICK QUINN
Associated Press

KABUL, Afghanistan (AP) _ The United States and Afghanistan faced potentially divisive issues such as immunity for U.S. troops as the two sides began talks Thursday on a security agreement that will shape America’s military presence in the country after the withdrawal of most foreign combat troops in two years.

However, the talks could last up to a year, and questions about specific military operations or the exact number of U.S. troops that will remain in the country were being put off until later, according to a senior U.S. official. U.S. and Afghan officials also indicated that the issues of legal jurisdiction will be left until later, after easier topics are negotiated. The officials spoke on condition of anonymity because of the sensitivity of the negotiations.

Earlier this week, U.S. Defense Secretary Leon Panetta said the Obama administration expected a decision in the next few weeks on how many U.S. troops will remain in Afghanistan after 2014. He added that Gen. John Allen, the top U.S. commander in Afghanistan, had developed several options but would not reveal what troop levels were being considered.

It is believed that the United States wants to retain up to 20,000 troops in Afghanistan after 2014 to train and support Afghan forces and go after extremists and groups, including al-Qaida. Afghanistan now has about 66,000 U.S. troops and it remains unclear how many will be withdrawn next year as they continue to hand over security to Afghan forces. The foreign military mission is evolving from combat to advising, assisting and training Afghan forces.

The two countries also are grappling with the potentially divisive issues of whether U.S. troops can be prosecuted under Afghan law _ an issue that sank America’s security deal with Iraq last year _ America’s military footprint, and what bases and facilities the U.S. will use after 2014.

“The negotiations we just started today will be about the quantity, quality and the condition of the presence of American forces in Afghanistan after 2014,” Eklil Hakimi, Afghanistan’s ambassador in Washington, told reporters after the one-day meeting.

He and James Warlick, the Obama administration’s deputy special representative for Afghanistan and Pakistan are leading the talks, which are expected to resume next month.

“This document is intended to provide the legal authorities of our military forces and its civilian component,” Warlick said.

The decision on troop levels will depend in part on Afghanistan’s desire to allow troops to remain and whether the U.S. receives acceptable legal guarantees for American troops. But the agreement is not expected to be a defense deal and the senior U.S. official said it would not include a security commitment.

The so-called bilateral security agreement follows a deal that was signed last May in Kabul by President Barack Obama and Afghanistan President Hamid Karzai _ a document that drew the outlines of the broad relationship between their countries after 2014.

In that deal, the United States said it would work with Afghanistan to develop a response if it was ever attacked, but was not committed to help. Washington was committed, however, to supporting Afghanistan’s social and economic development, security institutions and regional cooperation through 2024. In turn, Afghanistan promised to strengthen government accountability, transparency and oversight and to protect the human rights of all Afghans, both men and women.

Afghanistan and the United States have tried to defuse regional concerns about the agreement. Afghanistan’s neighbor Iran is opposed to any such agreement.

“Both sides clarified that these negotiations are premised on the understanding that the United States does not seek permanent military bases in Afghanistan, or a presence that is perceived as a threat to Afghanistan’s neighbors,” said a joint statement issued after the meeting.

The bilateral security agreement is essentially a status of forces agreement and will include all the authorities needed to operate military forces in Afghanistan, including taxation, visas and other technical issues. It does not need to be ratified by the U.S. Congress. The U.S. has similar agreements with dozens of countries.

In Iraq, a similar deal fell apart after U.S. officials were unable to reach an agreement with the Iraqis on legal issues and troop immunity that would have allowed a small training and counterterrorism force to remain there.

Karzai said last month that the issue of soldiers being protected from prosecution in Afghanistan could be a problem in the talks. He has said Afghanistan might demand prosecutions in some cases. The issue took on new meaning after Staff Sgt. Robert Bales allegedly attacked Afghan civilians in two villages in southern Afghanistan. The American soldier faces 16 counts of premeditated murder and six counts of attempted murder in the March 11 attacks against civilians. A preliminary hearing was held this week at Joint Base Lewis-McChord in Washington state.