Extinction of species by periodic comet showers