De aanval vond plaats nabij de grens met Burkina Faso, waar islamitische militanten in opstand komen.