A former University at Buffalo graduate and teacher from Erie Community College has been named to serve as the next prime minister of Somalia.