As long as you didn't pull the trigger and the justice system does it's job, you're fine.
I hope your question is hypothetical. If you gun is in the possession of someone capable of going on a murderous rampage, you should remove it from that area immediately.