The Brooklyn Nets handed the Miami Heat their fourth defeat in five games, as they won 96-95 in the NBA on Wednesday.