The Trans-Tasman meeting became a run-laden final-ball thriller as New Zealand fell agonisingly short while Bangladesh had a day to forget