The police said that the gunman was in custody after the attack at the Grand Sierra Resort and Casino.