An apparent armed robbery attempt was caught on camera recently at a Starbucks in Fresno, Calif.

The would-be criminal’s intent, however, was thwarted by a quick-thinking patron who picked up his chair and began beating the man.

Both men were reportedly stabbed during the altercation that ensued.

Police say the bloodied suspect was found and arrested a short distance from the coffee shop.

Here’s the video: