West Africa’s main bloc has agreed on a “D-day” for possible military intervention to restore democracy in Niger after generals toppled and detained President Mohamed Bazoum last month.