Tanzania is banking on its natural resources during the global transition to clean energy, but analysts warn there are dangers ahead