(CNN) -- The nationwide manhunt for a suspected bank robber and cop killer ended when a Phoenix police detective shot and killed a man after a new bank robbery.
The suspect was identified as 40-year-old Mario Edward Garnett by Phoenix police. Records show that he spent four years in the U.S. Army and was from the Midwest, police said.
The FBI confirmed that Garnett was the man wanted for holdups in two other states.
His last heist took place Saturday morning in Phoenix. After leaving the bank with a bag and gun, Garnett was approached by a police officer and started shooting. The officer retreated, but an undercover detective, who happened to be in the area, shot Garnett in the chest, police said. Garnett died shortly afterward at the scene.
Using cell phone records, the FBI confirmed that Garnett was in the area of two other holdups.
Authorities believe he started his crime spree across the country nearly a week ago when he tried to rob a bank Monday in Atlanta but failed and ended up robbing a customer at the bank's ATM.
Hours later, authorities believe, Garnett robbed a bank about 300 miles away in Tupelo, Mississippi. That robbery escalated to a gunfight with police, and two officers were shot.
One of those officers, Gale Stauffer, died. After hearing the news of Garnett's death, Stauffer's wife, Beth, said: "We can truly begin the healing process."
Tupelo Police Chief Bart Aguirre said Stauffer's death may be the first in the department's history.
The second officer shot, Joseph Maher, is recovering in a Tupelo hospital.