MEXICO CITY — An official working at the United States consulate in Guadalajara, the second-largest city in Mexico, was shot and wounded on Friday evening by a young man who stalked him in the parking lot of a shopping mall and then fired as he drove out.

The State Department official, who was not identified, was in stable condition after the shooting, a spokeswoman from the United States Embassy in Mexico City said on Saturday. Neither embassy officials nor the Mexican attorney general’s office commented on a possible motive.

Guadalajara is the capital of Jalisco, the headquarters of the New Generation Jalisco cartel, an organized crime gang that has carried out violent attacks on the Mexican military and police over the past two years. But residents of the city have rarely been a focus of cartel violence.