A Texas man has been charged with a federal gun crime after authorities say he sold a gun to a man who held four hostages inside a Texas synagogue earlier this month before being fatally shot by the FBI, the Justice Department said Wednesday.

Henry “Michael” Williams, 32, was charged with being a felon in possession of a firearm after authorities say he sold the weapon that Maisal Faisal Akram used when he entered Congregation Beth Israel in Colleyville, Texas, on Jan. 15 and held the synagogue’s rabbi and three others hostage for hours.

Williams had previously been convicted of aggravated assault with a deadly weapon and attempted possession of a controlled substance.

Rabbi Charlie Cytron-Walker of Congregation Beth Israel addresses reporters during a news conference at Colleyville Center on Friday, Jan. 21, 2022 in Colleyville, Texas. In the final moments of a 10-hour standoff with a gunman at a Texas synagogue, the remaining hostages and officials trying to negotiate their release took “near simultaneous plans of action,” with the hostages escaping as an FBI tactical team moved in, an official said Friday. (Elias Valverde IIThe Dallas Morning News via AP)

Rabbi Charlie Cytron-Walker of Congregation Beth Israel addresses reporters during a news conference at Colleyville Center on Friday, Jan. 21, 2022 in Colleyville, Texas. In the final moments of a 10-hour standoff with a gunman at a Texas synagogue, the remaining hostages and officials trying to negotiate their release took “near simultaneous plans of action,” with the hostages escaping as an FBI tactical team moved in, an official said Friday. (Elias Valverde IIThe Dallas Morning News via AP)

The attorney listed for Williams in court records did not immediately respond to a phone message and email seeking comment.

Akram, a 44-year-old British citizen, held hostages in the Dallas-area suburb while demanding the release of a federal prisoner. The standoff ended after more than 10 hours when the temple’s rabbi threw a chair at Akram and fled with the other two remaining hostages just as an FBI tactical team was moving in.

None of the hostages were injured.

Prosecutors say Williams sold Akram a semi-automatic pistol on Jan. 13 — two days before the hostage-taking. The pistol was recovered from the scene.

Williams initially told investigators one day after Akram was killed that he recalled meeting a man with a British accent but didn’t remember his name. During a separate interview the following week, authorities said, Williams was shown a photo of Akram and this time confirmed that he sold Akram the weapon at an intersection in South Dallas.

Williams told investigators that Akram told him he intended to use the gun to intimidate someone who owed an outstanding debt, according to authorities.

Dallas police arrested Williams on an outstanding warrant Monday, and he told federal investigators that he sold the gun to Akram after being read his rights, according to charging documents.

Earlier Wednesday, British police said they arrested another two men in the investigation into the hostage-taking incident.

The counter-terrorism force Policing North West said the two men were arrested in the northern English city of Manchester. They were being held for questioning and have not yet been charged.

The police force did not disclose details about the two men. British police do not release names and details of detainees until they are charged.

Akram was originally from the town of Blackburn in northwest England.

The hostages said Akram cited antisemitic stereotypes, and authorities said Akram was demanding the release of Aafia Siddiqui, a Pakistani neuroscientist convicted of trying to kill U.S. troops in Afghanistan and who is serving a lengthy sentence in a prison near Colleyville.

On Jan. 20, British police detained two men in the cities of Birmingham and Manchester for questioning as part of the same investigation. The men were released with no further action.

Two British teenagers were also detained earlier in Manchester and released without charge.

British media reported that Akram was investigated by MI5, the domestic security service, in the second half of 2020, but was deemed not to be a credible threat at the time.

The story has been corrected to show that Williams was charged with being a felon in possession of a firearm, not selling a gun.