An Alternating Direction Method for Chance-Constrained Optimization Problems with Discrete Distributions