U.S. Immigrations and Customs Enforcement reports the man killed in a gunfight with a Napa County sheriff's deputy earlier this week had been deported three times.

"Javier Hernandez-Morales was a Mexican national unlawfully present in the United States who had been previously removed three times prior to 2011," ICE said in a statement Thursday.

In addition to being deported three times, ICE issued detainers four separate times for Hernandez-Morales following his arrests for local crimes, the statement said.

Those crimes include driving under the influence, battery on a peace officer, selling liquor to a minor and probation violations, ABC7 reports. California state law prevented NAPA County authorities from complying with those detainers.

ICE issued a statement that reads in part: "This incident may have been prevented if ICE had been notified about any of the multiple times Hernandez-Morales was released from local custody over the last few years. This is an impactful, scary example of how public safety is affected by laws or policies limiting local law enforcement agencies' ability to cooperate with ICE."