Boeing 787 diverted to New Caledonia with smoke from cockpit, says official