A magnitude 5.8 earthquake struck near New Zealand’s capital Wellington on Monday, but there were no immediate reports of damage.