A shooting by masked gunmen near a mosque in southern France late Sunday had nothing to do with terrorism, according to French police.