CHATTANOOGA, Tenn. (AP) — A gunman unleashed a barrage of fire at a recruiting center and another U.S. military site a few miles apart in Chattanooga on Thursday, killing at least four Marines and sending service members scrambling for cover as bullets smashed through the windows. The attacker was also killed.

Federal authorities said they were investigating the possibility it was an act of terrorism, and the FBI took charge of the case.

Authorities identified the gunman as Kuwait-born Muhammad Youssef Abdulazeez, 24, of Hixson, Tennessee, though the spelling of his first name was in dispute, with federal officials and records giving at least four variations.



More from the scene:

​

11 PHOTOS Tennessee Naval Center shooting See Gallery 4 Marines and gunman die in two military attacks CHATTANOOGA, TN - JULY 16: Evidence markers sit on the ground at the scene of a shooting in the parking lot of the Armed Forces Career Center/National Guard recruitment office on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: An angel statue sits in a makeshift memorial near the scene of a shooting at a Armed Forces Career Center/National Guard recruitment office on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Zach, Zoe and Melissa Cates add to a makeshift memorial near the scene of a shooting at a Armed Forces Career Center/National Guard recruitment office on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: A makeshift memorial is sits outside of the scene of a shooting at a Armed Forces Career Center/National Guard recruitment office on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Chattanooga Mayor Andy Burke (R) speaks as Tennessee Gov. Bill Haslam (L) and Chattanooga Police Chief Fred Fletcher (2nd L) listen during a press conference at the 911 Communications Center on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Chattanooga Police Chief Fred Fletcher during a press conference at the 911 Communications Center on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Chattanooga Police Chief Fred Fletcher (R) speaks as Chattanooga Mayor Andy Burke (L), Tennessee Governor Bill Haslam (2nd L) listen during a press conference at the 911 Communications Center on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Tennessee Gov. Bill Haslam speaks during a press conference at the 911 Communications Center on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Bullet holes are seen in the glass of a Armed Forces Career Center/National Guard recruitment office on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) CHATTANOOGA, TN - JULY 16: Members of the FBI Evidence Response Team work the scene of a shooting in the parking lot of the Armed Forces Career Center/National Guard recruitment office on July 16, 2015 in Chattanooga, Tennessee. According to reports, Mohammod Youssuf Abdulazeez, 24, opened fire on a military recruiting station at a strip mall and then killed four U.S. Marines at an operational support center operated by the U.S. Navy at another location more than seven miles away, where the gunmen himself was also killed. (Photo by Jason Davis/Getty Images) US President Barack Obama (L) speaks during a meeting with FBI Director James Comey (R) in the Oval Office of the White House in Washington, DC, on July 16, 2015, on the shooting in Chattanooga, Tennessee. US President Barack Obama said the 'heartbreaking' shootings in Chattanooga that killed four Marines appeared to be the work of a lone gunman. AFP PHOTO/Mandel NGAN (Photo credit should read MANDEL NGAN/AFP/Getty Images) Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

A U.S. official said there was no indication Abdulazeez was on the radar of federal law enforcement before the shootings. The official was not authorized to discuss the case and spoke on condition of anonymity.

The shootings took place minutes apart, with the gunman stopping his car and spraying dozens of bullets first at a recruiting center for all branches of the military, then apparently driving to a Navy-Marine training center 7 miles away, authorities and witnesses said. The attacks were over within a half-hour.

In addition to the Marines killed, three people were reported wounded, including a sailor who was seriously hurt.

"Lives have been lost from some faithful people who have been serving our country, and I think I join all Tennesseans in being both sickened and saddened by this," Gov. Bill Haslam said.

Authorities would not say how the gunman died. FBI agent Ed Reinhold said Abdulazeez had "numerous weapons" but would not give details.

"We are looking at every possible avenue, whether it was terrorism, whether it's domestic, international, or whether it was a simple criminal act," Reinhold said.

Within hours of the bloodshed, law officers with guns drawn swarmed what was believed to be Abdulazeez's house, and two females were led away in handcuffs.

A dozen law enforcement vehicles, including a bomb-squad truck and an open-sided Army green truck carrying armed men, rolled into the Hixson neighborhood, and police closed off streets and turned away people trying to reach their homes.

Abdulazeez graduated from the University of Tennessee at Chattanooga in 2012 with a bachelor's in electrical engineering and was a student intern a few years ago at the Tennessee Valley Authority, the federally owned utility that operates power plants and dams across the South.

The U.S. National Counterterrorism Center is reporting no apparent nexus to terrorism has been uncovered in the investigation, but intelligence officials are monitoring the investigation closely. The Islamic State group has been encouraging extremists to carry out attacks in the U.S., and several such homegrown acts or plots have unfolded in recent months.

The names of the dead were not immediately released. In addition to the wounded sailor, a Marine was hit in the leg but not seriously hurt, and a police officer was shot in the ankle, authorities said.

In Washington, President Barack Obama pledged a prompt and thorough investigation and said the White House had been in touch with the Pentagon to make sure military installations are being vigilant.

"It is a heartbreaking circumstance for these individuals who served our country with great valor to be killed in this fashion," he said.

Vice President Joe Biden likewise said: "Their families have already given a lot to the country, and now this."

The shootings began at the recruiting center on Old Lee Highway, where a shot rang out around 10:30 or 10:45 a.m., followed a few seconds later by more fire, said Sgt. 1st Class Robert Dodge, leader of Army recruiting at the center.

He and his comrades dropped to the ground and barricaded themselves in a safe place. Dodge estimated there were 30 to 50 shots fired. Doors and glass were damaged at the neighboring Air Force, Navy and Marine offices, he said.

Law enforcement officials told recruiters that the gunman stopped his car in front of the recruiting station, shot at the building and drove off, said Brian Lepley, a spokesman with the U.S. Army Recruiting Command in Fort Knox, Kentucky.

The recruiting center sits in a short strip mall, between a cellphone business and an Italian restaurant, with no apparent special security.

The gunman opened fire next at the Navy Operational Support Center and Marine Corps Reserve Center Chattanooga. All the dead were killed there.

The Navy-Marine center, situated in an industrial area of the city, is a fenced-off installation. Its two entrances have unmanned gates and concrete barriers that require approaching cars to slow down to drive around them.

Marilyn Hutcheson, who works at Binswanger Glass across the street, said she heard a barrage of gunfire around 11 a.m.

"I couldn't even begin to tell you how many," she said. "It was rapid-fire, like pow-pow-pow-pow-pow, so quickly. The next thing I knew, there were police cars coming from every direction."

She ran inside, and she and other employees and a customer waited it out with the doors locked. The gunfire continued with occasional bursts for what she estimated was 20 minutes. Bomb squads, SWAT teams and other local, state and federal authorities rushed to the scene.

"If it was a grievance or terroristic related, we just don't know," she said.

___

Associated Press writers Eric Tucker, Ted Bridis and Lolita C. Baldor in Washington; Travis Loller and Kristin M. Hall in Nashville; and Rebecca Reynolds Yonker and Claire Galofaro in Louisville, Kentucky, contributed to this report.



More from AOL.com:

Judge sets trial for suspect in Charleston church shooting

Kerry vows to defend Iran-wary allies in Mideast

George H.W. Bush in fair condition after breaking bone in neck