A security guard caught a thief in the act and issued a ticket in a compromising spot