France on Sunday warned it would retaliate if its citizens were attacked in Niger, after protesters tried to enter its embassy in the capital, Niamey.