Mortars lit up the dawn sky when they were fired on a United Nations base in the northern Mali city of Kidal, killing at least three people.
The attack came eight days after Islamic extremists attacked a luxury hotel further south in the capital, Bamako, in which 20 people were killed.
Two UN peacekeepers and a contractor were killed in the attack that also injured 20 people, leaving four in serious condition, said Olivier Salgado, spokesman for the UN mission in Mali.
Guinea’s ministry of defence said two of its soldiers were killed.
A Kidal resident said about six shells were fired by attackers at dawn.
“The earth vibrated then I saw two flares in the air and then another one burst, which gave me the impression of being a response by the UN,” said Assarid Ag Cheick.
No group claimed responsibility for the attack in the country’s restless north but Islamic extremists are suspected.
“I want to reiterate that these attacks will not impede the determination of the United Nations to support the Malian people and the peace process,” said Mongi Hamdi, the head of the UN mission.
“I express my solidarity and salute the brave men and women serving (the UN mission) throughout the country for their efforts to bringing lasting peace to Mali in these difficult conditions.”
Northern Mali has been unstable since it fell to Tuareg separatists and then Islamic extremists following a military coup in 2012. Separatists, militia groups and the government signed a peace deal in June.
In 2013, the French pushed Islamic militants out of Mali’s northern cities and towns, but jihadists continue to carry out attacks, often targeting UN peacekeepers.
Extremists extended their reach further south this year, including an assault on a Bamako restaurant and bar popular with foreigners in March that killed five people and another on a hotel in Mali’s central Sevare town in August that killed 13.
Islamic extremist group Al-Mourabitoun claimed responsibility for both attacks.
The group has said it worked with al Qaida in the Islamic Maghreb on the November 20 assault on the Radisson Blu hotel in Bamako. But responsibility for the attack was also claimed by other militant groups.
Malian authorities have said they arrested two men over the violence.