The Senegalese government announced on Tuesday that it had opened an investigation following the broadcasting of videos showing armed men in civilian clothes, accused of violently attacking demonstrators during the unrest that followed the conviction of opposition politician Ousmane Sonko.