Theologians have long struggled with the question of why a good and loving God permits such things to happen.