BAGHDAD (Reuters) - A militia loyal to Iraqi Shi’ite cleric Moqtada al-Sadr freed an American former soldier on Saturday after holding him captive in Baghdad for nine months.

The American, identified as Randy Michaels, was shown on television in a U.S. military uniform with no insignia, flanked by two members of parliament from Sadr’s movement, including the parliament’s first deputy speaker.

He was handed over to the United Nations mission in Baghdad, which transferred him to the U.S. embassy. Washington confirmed he was a U.S. citizen but released no further details.

In brief remarks to Iraqi journalists hastily convened to witness his release, Michaels said he had deployed to Iraq in 2003 and initially served there as a soldier for 15 months.

He remained in Iraq “in a civilian capacity from then until June of 2011, when I was taken hostage by elements of Yom al-Maoud,” he said, referring to the Promised Day Brigade, an offshoot of Sadr’s Mehdi Army militia.

“I was taken inside Baghdad and have been kept in and around different locations within the city by al-Maoud. It was explained to me that my release has been for humanitarian purposes and there was no exchange involved.”

Sadrist lawmakers repeatedly described him as an American soldier. However, the Pentagon says none of its serving troops have been listed as hostages in Iraq since the remains of the last missing soldier were recovered last month.

Slideshow ( 2 images )

Maha al-Douri, a lawmaker from Sadr’s bloc, said: “We declare the release of the American soldier, Randy Michaels, without any compensation, according to the instructions of Moqtada al-Sadr, as a gift from him to the soldier’s family and to his people, and to correct the image of Islam.”

Qusay al-Souhail, deputy parliament speaker, said the leadership of the Promised Day Brigade had made the decision to free their captive in light of the confirmation that U.S. troops had withdrawn from Iraq.

The U.N. mission in Baghdad, UNAMI, confirmed that Souhail and Douri had handed over a U.S. citizen and said it had passed him to the U.S. embassy.

A U.S. State Department official in Washington said: “We can confirm that the UNAMI has transferred a U.S. citizen to the U.S. embassy in Baghdad, which is providing consular assistance. Due to privacy considerations, we are unable to provide additional information.”

Nine years after the invasion that toppled Saddam Hussein, the United States withdrew its forces from Iraq in December, with the exception of a few hundred service members stationed as part of the diplomatic mission at its embassy.

The U.S. mission still includes 2,000 diplomats and, as of last year, 14,000 civilian contractors. The embassy says the number of contractors has declined since then but does not release updated figures.

Sadr’s Mehdi Army fighters controlled swathes of Baghdad and southern Iraq until they were largely defeated by Iraqi government forces and U.S. troops in 2008.

Sadr disbanded most of the Mehdi Army and joined mainstream politics, and his followers are part of the governing power-sharing coalition.

The Promised Day Brigade and other Mehdi Army offshoots continued to battle U.S. forces and have claimed responsibility for kidnappings of foreigners. Those groups have mainly said they are disarming now that U.S. troops have left.