The man told the guard a funny joke.