The Ras Jdir border crossing between Tunisia and Libya has been closed by authorities, following an outbreak of violence in the area.