Five months after the shooting rampage last summer at two Navy facilities in Tennessee, five service members who were killed and one survivor will be awarded Purple Heart medals, the military said on Wednesday.

Four Marines and one sailor were gunned down by Mohammod Youssuf Abdulazeez on July 16 in attacks at an armed services recruiting center and a naval reserve facility in Chattanooga. Another Marine was shot in the leg and survived, and a police officer and one other person were wounded. The attack ended when the gunman was shot and killed.

Secretary of the Navy Ray Mabus said the Federal Bureau of Investigation and the Naval Criminal Investigative Service had concluded after an extensive investigation that the attack was inspired by a foreign terrorist group, the final criteria required for the awarding of the Purple Heart to the service members and their families.

“Although the Purple Heart can never possibly replace this brave sailor and these brave Marines, it is my hope that as their families and the entire Department of the Navy team continue to mourn their loss, these awards provide some small measure of solace,” Secretary Mabus said. “Their heroism and service to our nation will be remembered always.”