Tanzanian president sacks intelligence chief