Updated

The chairman of the U.S. Joint Chiefs of Staff met with Iraqi officials Tuesday in the first such visit by America's top general since troops withdrew from the country in December.

Gen. Martin Dempsey was expected to discuss military cooperation between the two countries during a brief stay in Baghdad. Iraqi state TV aired footage Tuesday evening showing him talking with Prime Minister Nouri al-Maliki.

The Iraqi leader's media adviser, Ali al-Moussawi, described the talks as positive. He said the men discussed the state of bilateral relations, arms purchases and military cooperation. He would not elaborate.

Dempsey also met with Lt. Gen. Robert Caslen, head of the Office of Security Cooperation in Iraq, according to Dempsey's spokesman, Col. David Lapan. That office is an arm of the U.S. Embassy and is responsible for facilitating Iraqi arms purchases and training the Iraqis how to use and maintain the weapons.

The U.S. Embassy did not immediately provide further details about the visit.

Dempsey last visited Iraq in December for a ceremony to formally shut down the nearly nine-year U.S. war effort in Iraq.

The last American troops left Iraq on Dec. 18, sticking to a year-end withdrawal deadline outlined in a 2008 security agreement. The U.S. had hoped to maintain a military presence in Iraq beyond that deadline, but Washington was unable to reach a deal with the Iraqis on legal issues and immunity for U.S. troops.

Since the American withdrawal, political infighting among Iraqi political leaders has deepened and security has deteriorated, with more than 200 people killed in insurgent attacks since the start of this month alone.

Dempsey traveled to Iraq after a visit to Afghanistan, where an insurgent rocket attack damaged his plane while it was parked at an American base north of Kabul. The general and his aides were safe in their quarters, and flew to Baghdad on a different aircraft.

His visit to Afghanistan focused on the state of the 10-year-old war there and a string of killings of U.S. military trainers by their Afghan partners or militants dressed in Afghan uniforms.

___

Associated Press writers Robert Burns in Washington and Sameer N. Yacoub in Baghdad contributed reporting.