Former Tanzanian envoy lands top job