Nahid Rana took his second career five-wicket haul to help Bangladesh beat New Zealand by six wickets in Mirpur and level the three-match ODI series at 1-1.