Yorkshire's Jack Leaning produced a stunning one-handed boundary catch to dismiss Lancashire's Arron Lilley.