I think Alma's answer is a lame attempt to explain something horrible being allowed to happen. I see him as casting about for some kind of explanation and coming up short.
I find this story the most difficult in the Book of Mormon, even moreso than Nephi killing Laban. Here's why:
Alma says God gives him no power to save believing women and children from burning to death.
How painful must this have been to have women and children who believed Alma's message being burned to death. For the women and children, obviously.
But how would Alma feel knowing he was the cause of this destruction in that had he not preached to them, they would not have died? How does Amulek feel being a new convert of Alma's and complicit in the preaching, especially when he is from the same city and actually knows these people on a long term basis?
Amulek captures the feeling, asking how they can stand idly by and look on so horrible a scene. (Then comes your quote from Alma.)
Then Alma and Amulek are thrown into prison and after three days of abuse, they are delivered by . . . wait for it . . . the power of God.
How is it God will use his power to deliver Alma and Amulek from prison but not innocent women and children from fire? This makes the story even more difficult.
Hardest of all is when Alma and Amulek leave the city and encounter the fathers and husbands of those women and children who were burned alive.
Here come Alma and Amulek alive, saved by God's power, and they get to "explain" how it is they are alive and the women and children are horribly slain with no divine intervention.
What must that meeting have been like? The Book of Mormon says only the following about it:
Alma 15:1 And it came to pass that Alma and Amulek were commanded to depart out of that city; and they departed, and came out even into the land of Sidom; and behold, there they found all the people who had departed out of the land of Ammonihah, who had been cast out and stoned, because they believed in the words of Alma.
2 And they related unto them all that had happened unto their wives and children, and also concerning themselves, and of their power of deliverance.
This scene strikes me as rich in pathos. How would one feel in Alma's and Amulek's shoes? How does one feel in the shoes of the fathers and children.
What does this say about the seemingly arbitrary and capricious nature of God?
All the Best!
--Consiglieri