Tanzanian minister resigns after mining contract probe