DEVELOPING: Police aounced Friday they caught a federal officer wanted in coection with three shootings in Maryland that killed a total of three people, including his estranged wife, ending a hunt that left many people in the suburbs of Washington, DC on edge.

Officers in Aspen Hill arrested 62-year-old Eulalio Tordil, who was wanted on a first-degree murder charge. Investigators said Tordil, an officer working for the Federal Protective Service, shot and killed his wife, a chemistry teacher, outside their children's school in Beltsville Thursday.

Then on Friday moing, two more shootings unfolded -- one at a mall parking lot in Bethesda, and one outside a supermarket in Aspen Hill roughly 30 minutes later. Police said they had "reason to believe" Tordil was the gunman in those shootings as well.

Tordil had been eating lunch "calmly" at a Boston Market in Aspen Hill for about an hour before police spotted him, a witness told WJLA.

Initially, one person was shot outside Westfield Montgomery Mall after some kind of confrontation, Montgomery County Assistant Police Chief Darryl McSwain said. He added that two others were shot after they rushed to the first person's aid. Paramedics rushed the three people shot -- two men and one woman -- to nearby Surburban Hospital, which went on lockdown.

One of the men died in the hospital. The other man was in critical condition, and police said they expected the woman who was shot to survive.

The shooting near the Giant Food supermarket in Aspen Hill left one woman dead.

Prince George's County police said Eulalio Tordil followed his wife, 44-year-old Gladys Tordil, to High Point High School and shot her Thursday, also wounding a man who tried to intervene. Officials said the bystander had injuries that were not life-threatening.

Gladys Tordil had filed a protective order against her husband in March, claiming he abused one of her children and forced others to endure "intense-military-like discipline" including detention in a dark closet, The Washington Post reported. The wife also reportedly accused her husband of slapping her so hard that her glasses broke on her face, saying he kept as many as five guns at home.

The Federal Protective Service said it put the officer on administrative duties after a civil court issued that protective roder. His duty weapon, badge, and credentials were taken. He was subsequently placed on administrative leave.

The Federal Protective Service provides security at federal properties.

A witness at the mall, Jose Mauricio Gomez, told the Post he heard six to eight shots. He said an officer rushed to the woman who was wounded. “That’s when blood shot out of the hole in her shoulder and he sat her back down.”

Police closed off large parts of the mall's parking lot, with clothing and other debris strewn on the ground outside the Macy's there.

All Montgomery County schools and recreation centers went on lockdown, Fox 5 reported. However, some parts of the mall remained open.

Fox News' Jake Gibson and The Associated Press contributed to this report.

Click for more from Fox 5.