Should have been stopped by the boarding staff or the FA greeting gun toting copper at aircraft door.
As for police walking through xray armed- see it quite regularly. No-one stops them. At minimum there should be an ASIC swipe machine at security so their I.Ds could be detected as genuine or fraudulent instantly.
And let's not forget the not so rigid security measures below the terminal, outside the flying publics view.