A jar should work. When I need to catch fast critters I usually put an empty glass tea bottle in the tank with a piece of krill in it. Works every time, but it isn't a guarantee that you'll catch what you want.

You could always put the opening of the jar at the opening of the shrimp's cave. That'd better the odds.