Tripoli gov't declares state of emergency