Police: Alleged shooter had gun at workplace at time of dismissal