Khris Middleton hit the crucial field goal late on as the Milwaukee Bucks clinched their first NBA title since 1971.