Two staff members were killed in a shooting at a Maryland senior living facility just outside of Washington DC on Friday and a suspect was taken into custody, according to US media reports.

The shooting happened at National Church Residences Gateway Village in Capitol Heights around 9.15 am, Prince George’s County police tweeted.

A resident who identified himself only as Donald said the shooter is his friend and lived in the complex. He said the man was fed up with how residents have been treated, according to Associated Press inputs.

Also Read | US Capitol Police arrest man in ‘suspicious vehicle’ outside Supreme Court

“He told me, ‘Don, nobody is standing up for these seniors. I can’t take it no more. I’ve got to do something.’ And obviously what he chose to do is wrong, but he did something,” the resident said, AP reported.

“I know what set him off — the way they treat the seniors in Gateway Village!” Donald added.

Meanwhile, National Church Residences executive vice president Michelle Norris confirmed in a prepared statement that those killed in the shooting were two “team members” of the facility.

The Gateway Village website describes the apartment complex about a half-mile (.8 km) east of the District of Columbia as an “affordable rental community for seniors age 62+” with studio and one-bedroom units.

Also Read | Brian Laundrie used her debit card before death, says Gabby Petito’s lawyer

National Church Residences spokeswoman Cindy Young said they “are extremely heartbroken” that two staff members were killed.

“We are proud of the heroic and swift actions of our staff to ensure that our residents were protected and kept safe. Our hearts go out to the families of our two team members who lost their lives in this tragic and unfortunate incident,” her statement said.

The shooter prepared to surrender even before police arrived, Donald said.

“I saw him after the shooting. He had come up to his place. When I stuck my head out after the fire alarm, he was laying prostrate on the floor, arms spread out and the weapon pushed six feet (two meters) in front of him,” Donald said.

“He told me to tell the police that he was no threat, that he was ready and waiting for them. He knew he was going away. He told me that. I called the police to get them on the phone, to tell them what was going on,” added Donald.

Also Read | Mother-son duo charged in relation to House Speaker Nancy Pelosi’s laptop theft

Police initially said they were searching for any additional victims or suspects and people should shelter in place, but they later tweeted that one male suspect was in custody and there was no ongoing threat to the community.

Before the arrest, a nearby school was temporarily placed on lockdown as a precaution, and police asked concerned relatives of residents to gather at a nearby firehouse.

With inputs from the Associated Press