Thousands of people felt the quake in New Zealand with media reporting buildings swaying and items falling from shelves.