A bank customer's timely action, which was caught on surveillance footage, helped in foiling a robbery attempt at a Pennsylvania bank Friday.

According to Scott Township Police, Robert Sakosky tackled the armed man wearing a mask inside the Honesdale National Bank. The surveillance video showed Sakosky walking into the bank around noon. Two more people walk into the bank after him and can be standing near the door as they wait their turn.

Fox News-affiliate WVUE reported the suspect, identified as John Ryall, came in shortly after Sakosky and tried to convince the clerk at the desk to hand over the money by putting it in a bag.

Sakosky can then be seen tackling Ryall to the floor and holding him in a headlock after a brief struggle off camera. He then grabbed the gun from Ryall and threw the bag of money across the floor. The video was shared by several news networks including CBS-affiliate WRDW-TV.

See posts, photos and more on Facebook.

ABC News-affiliate WNEP reported that Sakosky managed to take off Ryall's mask and then let him go. When the latter ran out through the doors to escape, Sakosky followed him outside and pointed the police to where he was headed.

People living and working near the bank hailed Sakosky as a hero. "He is exceptionally brave to have done that," Donna Shaw told WNEP. "I certainly would not have encountered anyone with a gun. I wouldn't have tried to do it."

"To be honest with you, it's good to see a Samaritan take down someone that's doing a robbery over there," said Nick Olmstead. "You know, it's actually nice to know that we have a community that's willing to help out."

Sakosky is reported to be the general manager of the Carbondale Grand Hotel. One of his employees, Wade Nordahl, also praised his boss saying: "He's definitely a hero, but he's just a normal guy. I mean, he's personable. He's a good boss. He never gets angry. I'm honestly surprised he did it."

Ryall was taken into custody after bank employees identified him as the robber. He faces several charges including robbery and making terroristic threats.