Ah. I see the problem here. Only the one that says he was able to breach your defenses was attack. The ones with the red lightning say he plundered one of your buildings, that means he stole some goods / coins / supplies from you. You always get to do this after winning someone in battle. But you don't have to do it immediately, you can do it within the next 24 hours.
You can only plunder (steal) productions that are ready, not ones that are still being made. So he is saving that opportunity to steal something until he sees something good is available in your city.
I hope this explains it.
Edit : And Bloodwyn beat me to it hihi