A man’s gun reportedly went off in his pocket in the middle of a church service on Saturday in Altoona, Penn., before he handed the weapon off to someone else who allegedly hid it in the pages of a program.

The firearm’s safety was off and the trigger caught on the man’s pocket, firing off a shot and grazing the man’s hand, according to television station WTAE.

“I immediately took a step back and was about to take cover,” Jason Wagler, who was attending service at Cathedral of the Blessed Sacrament, told the station.

“You never know if you’re safe anymore in this world. It’s a shame to know you can’t go into church without having something like this happen,” he said.

Wagler caught video on his phone of one man sat in a pew, flanked by two women appearing to care for him.

He said he also noticed that the man handed the gun off to someone else, who attempted to conceal the weapon in a church booklet amid the chaos.

“He immediately concealed it in a white program, so I took pictures of the gun inside this program,” Wagler said.

Authorities have not released the name of the man they suspect mistakenly fired the gun. WTAE reported that he was driven to to hospital.

h/t The Blaze