Buttler regains form but Hyderabad clinch last-ball thriller