DETROIT (AP) — A 26-year-old man was charged Sunday with buying a firearm that police say a 19-year-old later used to fatally shoot a Detroit police officer last week.

U.S. Attorney Dawn Ison said the Detroit man is charged with making a false statement in the acquisition of the firearm. He appeared in federal court Sunday and is being held until a detention hearing on Tuesday, according to a news release from prosecutors. It was unclear Sunday if the man has a defense attorney who could comment on his behalf.

READ MORE: 5-Year-Old Injured In Eastpointe Accidental Shooting; Gun Safety Instructor Says Lock Up Your Guns

Officer Loren Courts, 40, died after he and his partner were “ambushed” on Wednesday night as they responded to a report of a man firing a weapon, Detroit Police Chief James White said. Police say the gunman, Ehmani Davis, 19, was fatally shot by another officer as Courts’ partner was rendering medical aid to Courts.

READ MORE: Ballot Initiative To Strike Detroit's Adult-Use Ordinance Rejected, Opponents Continue To Fight

Ison said investigators traced the firearm used in the crime and determined the 26-year-old bought it at a Michigan gun store last month, where he said he was buying it for himself. He was later seen on surveillance video meeting with Davis in a nearby parking lot.

MORE NEWS: 5-Year-Old Accidentally Shoots Self In Foot At Eastpointe Home

© 2022 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.