Would-be robber gets a hard lesson in street justice