Military takeover in Indian Ocean nation follows wave of student protests in Bangladesh, Nepal and Kenya