A man accused of trying to rob a store with a knife was trapped inside after the owner locked him in. The store-owner then contacted a security guard, who was able to detain the suspect.