How could I make a casing ejection?

To clarify, I’m trying to do something similar to what Frontline Karelia has, that is, when the player opens their gun’s chamber to do whatever, the casing comes out. I want to be able to replicate the effect of the bullet spinning wildly out of the chamber and going up. I’m new to using force on objects, so some help would be nice.