Shirwa Ahmed, one of several suicide bombers in a terrorist attack last October in Somalia, had apparently been indoctrinated into his extremist beliefs while living in the United States.