Question: how do aa shells work?
Answer: They fired contact or proximity detonating explosive shells. If a contact AAA round hit your plane, it woukd explode. If it was a proximity munition, it was hoped the round would detonate near enough the airplane to damage or destroy it. Today, AAA is a smart weapon firing smart munitions.