Your house, so your rules. In my opinion, "A" needs to apologize for "B's" behavior. If she's truly a friend then she should feel embarrassed over what happened.
I see nothing wrong with how you handled things, except for not stopping "A" in handing over the Bersa to "B". Once the rules were...