'Know your limits': Tanzania's president warns ministers over state secrets after late-night sacking