A suspect is in custody after six people were killed Monday in a shooting at a youth welfare facility in Stade, Germany, a town of about 50,000 people located near Hamburg. Officials stated that the victims, four women and two men, were employees of the facility or affiliated organizations. Five victims died at the scene, and a sixth succumbed to their injuries at a hospital.

Authorities indicated that the shooting may be connected to a child custody dispute. The facility reportedly houses pregnant women and young mothers with children. The suspect, a 45-year-old man, had a scheduled appointment at the facility earlier in the day. His 3-month-old daughter and the child’s mother were reported to be safe.

Police apprehended the suspected gunman and detained two other individuals on suspicion of involvement, though further details were not immediately provided.

German President Frank-Walter Steinmeier expressed his shock at the violence. "The horrific act of violence in Stade claimed the lives of six people today. I am deeply shaken by the extent of the violence in a place that is meant to provide protection," Steinmeier said in a statement. "My condolences go to the families of the dead and injured, who must endure so much pain. My thanks go to all first responders and doctors."

Police initially advised the public to avoid the area but later confirmed there was no ongoing danger. Investigators were still gathering evidence at the scene.

Mass shootings are rare in Germany. Earlier this year, a car incident in Leipzig resulted in two deaths and several injuries.