Jim Carrey's character did something slightly embarrassing.... he then pretended that hand was a pistol; and he stuck the barrel (index finger) in his mouth. He pretended to shoot himself.
It was a comedy. I'm thinking that it is possibly Ace Ventura "When Nature Calls".
Anyone know?