Thursday's attack at the southeastern Nguagam camp, home to both internally displaced Nigeriens and refugees from across the border in Nigeria, came shortly after a major visit by lawmakers and UN personnel.
"Seven gendarmes were killed. They were buried today," a humanitarian source, speaking on condition of anonymity, told AFP. A security source confirmed the toll.
"Three Boko Haram vehicles arrived in the area," El Hadj Kilibou, one of the camp's residents, told AFP.
"They were wearing gendarmes' uniforms and were onboard gendarme vehicles. I saw it with my own eyes. They said to me, 'Don't run, stay, we're not killing civilians.'"
More From This Section
Kilibou fled a massive Boko Haram attack in the town of Bosso on June 3 that left 26 Nigerien and Nigerian soldiers dead as well as numerous civilians, prompting 50,000 people to flee.
Humanitarian and security sources said the Islamist group had infiltrated the camp, just a few kilometres from the Nigerian border, in order to watch what is happening there.
Extending the attacks to neighbouring countries from their base in northern Nigeria, the group's ascendancy has prompted a regional military fightback from Niger, Chad and Cameroon.