New Zealand quake sparks partial evacuation of city