Prosecutors say the two men are linked to al-Shabab , a Somali insurgent group affiliated with al-Qaida .