Madagascar has declared state of emergency over concerns about energy supplies to the Indian Ocean nation.