SEATTLE – The massacre at Fort Hood, Texas, and the ongoing war crimes prosecutions of Washington state soldiers helped inspire a terror plot in which two men planned to attack a military recruiting station in Seattle with grenades and machine guns, according to a federal complaint filed Thursday.

Abu Khalid Abdul-Latif, also known as Joseph Anthony Davis, of Seattle, and Walli Mujahidh, also known as Frederick Domingue Jr., of Los Angeles, were arrested Wednesday night.

The FBI ensnared them in a terror sting after they arrived at a warehouse garage to pick up machine guns to use in the attack, authorities said. The weapons had been rendered inoperable by federal agents.

The complaint, filed in U.S. District Court, paints Abdul-Latif as the leader of the effort. In conversations with an FBI informant, he spoke admiringly of the 2009 massacre at Fort Hood when a lone gunman killed 13 people, and of the case of five Washington state soldiers accused of killing three Afghan civilians for sport last year.