A gunman attacked two military facilities Thursday in Tennessee, killing at least four Marines, officials said. The suspect also is dead.

Here is a look at other recent attacks on military facilities in the U.S.:

— June 17, 2015: Guards shot and killed an armed man after he crashed his SUV and emerged holding a rifle while apparently trying to break into the Little Rock Air Force Base in Arkansas.

— Jan. 6, 2015: At Fort Bliss, Texas, an Army veteran and former clerk at the veterans' clinic there shot and killed a psychologist, then committed suicide.

— Nov. 13, 2014: Two Navy civilian police officers were wounded while confronting a knife-wielding man at the submarine base in Groton, Connecticut. The suspect was taken into custody.

— April 2, 2014: At Fort Hood, Texas, three soldiers died and 16 others were wounded in a shooting rampage by another soldier, Army Spc. Ivan A. Lopez, who then killed himself.

— March 24, 2014: A civilian truck driver, Jeffrey Tyrone Savage, took a gun from a petty officer on watch aboard a destroyer at Naval Station Norfolk in Virginia, and killed a sailor before being shot by Navy security forces.

— Sept. 16, 2013: Aaron Alexis, a mentally disturbed civilian contractor, shot 12 people to death at the Washington Navy Yard before he was killed in a police shootout.

— Nov. 5, 2009: Fort Hood Army Base, Texas: Army Maj. Nidal Malik Nadal Hasan, 39, was convicted in August 2013 for killing 13 people and wounding more than 30.

— June 1, 2009: Private William Long was killed and Private Quinton Ezeagwula was wounded when Abdulhakim Muhammad opened fire on the soldiers as they entered an Army-Navy recruiting station in Little Rock, Arkansas.