Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A California man is charged with attempted murder of "an internationally protected person" in last week's broad-daylight shooting of a U.S. consular officer in Mexico, authorities said Tuesday.

Zia Zafar, 31, of Chino Hills, California, was deported to the United States and charged Monday, the Justice Department said. He made his initial court appearance Tuesday and was ordered held pending a detention hearing Friday in federal court in Virginia.

A man identified by the FBI as Zia Zafar of California points a gun during the shooting Friday of Christopher Ashcroft, a U.S. vice consul in Guadalajara, Mexico. U.S. Justice Department

In an affidavit attached to the criminal complaint, filed in U.S. District Court in Alexandria, Virginia, the FBI identified the victim as Christopher Ashcroft, a vice consul at the U.S. consular office in Guadalajara —although it was still unclear what motivated what Secretary of State John Kerry has called a "heinous attack."

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Because he has diplomatic status, Ashcroft is considered an internationally protected person working as an agent of the U.S. government, which is why the case was transferred to the U.S. courts.

A man identified by the FBI as Zia Zafar of California is recorded on security video shortly after the shooting Friday of Christopher Ashcroft, a U.S. vice consul in Guadalajara, Mexico. U.S. Justice Department

Ashcroft told investigators that as he was leaving his gym next to a Guadalajara shopping center early Friday evening, a man wearing what appeared to be blue medical scrubs and a wig started following him to his vehicle.

Ashcroft managed to lose the man and make it to his vehicle — only to have the man shoot him in the chest as exited the parking lot, according to the affidavit. Ashcroft remains in a Guadalajara hospital, the Justice Department said Tuesday.

A man identified by the FBI as Zia Zafar of California makes a purchase at a Starbucks in Guadalajara, Mexico, on Saturday, a day after Christopher Ashcroft, a U.S. vice consul, was shot. U.S. Justice Department

Other than the disguise, the gunman made few efforts to hide his act, which was recorded on numerous security cameras, the FBI said. Photos attached to the affidavit show the gunman before, after and even during the shooting, which Mexican authorities called a "cunning and cowardly attack."

Zafar was identified as the suspect after he was recorded on video Saturday paying for a purchase at a local Starbucks using a credit card, which bore his real name, the FBI said. He was in Mexico on a student visa and lived in Guadalajara, according to the affidavit.

The FBI made no mention of a possible motive for the shooting. No attorney for Zafar is listed in court documents.