The Carthage Eagles scored through Naim Sliti, Youssef Msakni, Taha Yassine Khenissi and Wahbi Khazri, while Knowledge Musona and Tendai Ndoro were on target for the Warriors.
The other group B match saw Senegal play out to a 2-2 draw with Algeria to retain top spot. Leicester City's Islam Slimani grabbed a brace for the Algerians, while the Senegalese who featured a second string side replied through Papakouli Diop and Moussa Sow.
Senegal will face group A runners up Cameroon, while Tunisia will tackle Burkina Fasso in the last 8 on Saturday.