Prosecutors identified the three as suspected members of the Islamic militant group Ansar al-Islam , which U.S. authorities have linked to al-Qaida .