KAMPALA, Uganda—Uganda’s electoral commission said Saturday that longtime President Yoweri Museveni has won a sixth five-year term, while top opposition challenger Bobi Wine alleges rigging and officials struggle to explain how polling results were compiled amid an Internet blackout. In a generational clash watched across the African continent with a booming young population and a…