Officer caught the perp who was wearing cowboy costume