LaMelo Ball was the game-winner in a dramatic finish as the Hornets beat the Miami Heat in the NBA Play-In.