This was not carry-on
The bag was pulled from bag check? If you declare what you have should not have been a problem. I have a metal box in my checked baggage with my personal weapon (unloaded) and ammunition in a separate locked metal box. It’s declared on check-in and I’ve never had a problem.