At least 18 people died when an artisanal gold mine collapsed in southern Niger near the border with Nigeria.