WASHINGTON — The Obama administration announced Tuesday that it would prosecute in civilian court a Somali accused of ties to two Islamist militant groups. The decision to fly the man to New York for trial, after interrogating him for months aboard a U.S. naval vessel, is likely to reignite debate about the detention and prosecution of terrorism suspects.

In an indictment unsealed in the Southern District of New York, the Somali, Ahmed Abdulkadir Warsame, was charged with nine counts related to accusations that he provided support to al-Shabab in Somalia and al-Qaida in the Arabian Peninsula, in Yemen. Warsame, believed to be in his mid-twenties, was captured on April 19, and a plane carrying him arrived in New York City around midnight Monday night, officials said.

While the Justice Department called Warsame a “Shabab leader,” it does not accuse him of plotting any specific attack. Officials gave conflicting accounts of his significance: One portrayed him as a “senior operational commander” while another played down his role, saying that his capture was instead important because he had provided large amounts of intelligence about the groups and ties between them.

Regardless, his case is likely to have outsize significance in the political arena because it resonates with intense debates surrounding the administration’s counterterrorism policies — including whether to bring newly captured detainees to the military prison at Guantanamo Bay, Cuba; whether to prosecute terrorism cases in civilian court or before a military commission; and what rights terrorism suspects have during interrogation.

The House has already passed a bill that would probably prohibit the transfer of such military detainees into the U.S. In a statement, the chairman of the House Armed Services Committee, Rep. Howard P. “Buck” McKeon, R-Calif., denounced the administration’s decision.

“The transfer of this terrorist detainee directly contradicts congressional intent and the will of the American people,” he said. “Congress has spoken clearly multiple times — including explicitly√Ç¬†in pending legislation — of the perils of bringing terrorists onto U.S. soil.√Ç¬†It is unacceptable that the administration notified Congress only after it unilaterally transferred this detainee to New York City despite multiple requests for consultation.”