Here are a few good resources that address what we call “theodicy,” or the problem of a good God allowing evil.
Disappointment with God by Phillip Yancy
Introduction to Philosophy by Norman Geisler and Paul Feinberg. This has a great chapter on the problem of evil.
The Problem of Pain by C. S. Lewis.