Namibia’s state-run utility will build four plants powered by renewable energy over the next five years as the southern African nation seeks to guarantee local supplies and cut its use of fossil fuels.