With this victory, Morocco qualified for the quarter-finals of this African competition, alongside Egypt.
The Moroccan selection holds the second position in group A, two points away from Egypt, while Cameroon has left the competition.
Morocco is playing Egypt on Wednesday to determine who will take the lead of the group.
In group B, Guinea beat Algeria 28-22 on Tuesday.
Cape Verde inflicted the same fate on Nigeria with a 35-29 victory in Group C.
In Group D, Angola beat Senegal (32-25) and the Democratic Republic of Congo dominated Zambia (43-24).
The top five teams in the competition will qualify for the 2023 Handball World Cup, which will be held in Poland and Sweden next January.