Andy Murray lost his cool with umpire Carlos Bernardes during his clash with Tomas Machac at the Miami Open.