The man then opened fire, and as patrons threw themselves to the ground or rushed for the exits, security guards at the club “repelled” the attacker, Mr. Pech said, adding that the guards were apparently armed.