They were detained for alleged links to Boko Haram terrorist group