In the heat of the moment, he signaled to one of his men to turn off the light, Hack was the closest to the switch so he turned it off and for a moment, the shooting stopped for a while at the Sanchez cartel's end. This was because they were afraid of shooting those held captive.
Elio whistled and everyone at his end took that as a sign to move back and away from the room. They did that so swiftly that Jose's men did not know on time that they had left the room. When he finally figured that out, he brought Dahlia back to the chair she was sitting before because she managed to slide off to safety the first time. He told his men to turn the light back on.