What you are experiencing is called mode collapse, which can occur in GAN Training and is one of its "training instability problems". If you are using Vanilla GAN one effective way is to implement mini batch discrimination, which for my understanding does give the discriminator batches of real and fakes and it has to decide batchwise if its fake or real. So if it encounters the same or nearly same image often it is easy for him to say it's fake.
Other GAN Architecture like WGAN, and BEGAN state that they don't suffer from mode collapse which would be another alternative.
You can also try to expand the GAN to an AC-GAN, which produces classwise samples (0-9) but in AC-GAN it's also possible to suffer from classwise mode collapse.
Here is a pull request for keras implementing minibatch discrimination : https://github.com/keras-team/keras/pull/3677