Three people have been killed as violent protests and looting rock New Caledonia, according to an official of the French Pacific territory.