A powerful 7.8-magnitude earthquake kills two people and causes infrastructure damage in New Zealand, but officials say they are optimistic the death toll would not rise.