Pakistan keeps World Cup hopes alive with win over Kiwis