Footage captured the moment schoolchildren took cover under their desks as a 6.2 magnitude earthquake hit central New Zealand.