The New Zealand men's team have abandoned their tour of Pakistan following a New Zealand government "security alert".