The attack took place in an area where the peacekeeping mission had recently strengthened its presence due to threats of attacks against the civilian population.
Ban strongly condemned the attack, saying he was "saddened and outraged" by the killing of the brave blue helmets who "died in the service of peace."
Addressing reporters at the United Nations, Ban said the full details of the attack are not yet available and he understands that other peacekeepers are still in danger.
"After the attack, more than 40 peacekeepers remain with the villagers in this remote region to protect them from this armed group," Ban said. "My thoughts are with these brave peacekeepers and the community they are protecting."
The secretary-general also remained seriously concerned about the continued instability in the border areas between Ivory Coast and Liberia since the Ivorian post-elections crisis, which has resulted in the death of a number of individuals in that region.
The 15-nation Security Council issued a press statement condemning the attack "in the strongest terms". "The members of the Security Council expressed their deep concern at the prevailing insecurity in western Ivory Coast and the border area, and continued cross-border movements of armed elements, including militias and mercenaries," it said.
UNSC members expressed their condolences to the families of the peacekeepers killed as well as to the Niger government. They called on the government of Ivory Coast to work with all relevant parties to identify and bring the perpetrators to justice, a message echoed by Ban and UN General Assembly President Nassir Abdulaziz Al-Nasser.
"I call on the Government of Côte d'Ivoire (Ivory Coast) to do its utmost to identify the perpetrators and hold them accountable for this deadly attack," the UN chief said. "My heart goes out to the families at this difficult time, and I express my deepest sympathy to the Government of Niger for this tragedy," he added.
Earlier, UNOCI head Bert Koenders said the mission will take all the required measures following this severe violation of international law.
UNOCI was established in 2004 by the Security Council to facilitate the peace process in the country, which was split by civil war in 2002 into a rebel-held north and government-controlled south. It currently has more than 10,000 uniformed personnel.
The mission, whose current mandate runs until July 31, is currently tasked with assisting the country tackle the many challenges it faces in the wake of the violence that followed presidential elections in late 2010 and the electoral crisis that finally ended in April 2011. These include the restoration of law and order, national reconciliation, the holding of legislative elections, and economic recovery.
The 2010 election was won by Alassane Ouattara but incumbent leader Laurent Gbagbo refused to give up power until he was defeated by French and UN-backed local forces, who supported Ouattara.