Earthquake rattles New Zealand capital