Pittsburgh Mayor Bill Peduto said Sunday that armed guards in places of worship are not a solution one day after 11 people were killed and six wounded by a gunman at the Tree of Life synagogue in the city.

“I don’t think that the answer to this problem is solved by having our synagogues, mosques and churches filled with armed guards or our schools filled with armed guards,” Peduto (D) said in an appearance on NBC’s “Meet the Press.”

On Saturday, President Trump had suggested that more armed guards could help prevent shootings such as the one in Pittsburgh, comments that echoed the response he has often given after mass shootings throughout the country. But Peduto argued Sunday that the focus should instead be on keeping guns out of the wrong hands.

“I think the approach that we need to be looking at is how we take the guns — which is the common denominator of every mass shooting in America — out of the hands of those that are looking to express hatred through murder,” he said at a news conference in Pittsburgh.

Earlier Sunday, officials named the 11 people who were killed when, police say, Robert D. Bowers, armed with an assault-style rifle and three pistols, burst into the Tree of Life synagogue, screamed anti-Semitic slurs and began shooting.

On NBC, Peduto called the shooting “one of the darkest days in our city’s history.” In an interview on CNN’s “State of the Union,” he described his long-standing ties to the neighborhood where the shooting took place.

“This was my old city council district,” Peduto said. “I represented this area and worked in the community for 19 years before I was the mayor. I live five blocks from where I’m standing right now. Three blocks from here is where Fred Rogers lived. This is literally Mr. Rogers’s neighborhood.”

Some have called for Trump to tone down his inflammatory rhetoric in the wake of the shooting, while others, such as Vice President Pence, have argued that there is no connection between such language and “acts of violence and evil.”

Trump has said he plans to visit Pittsburgh in the coming days. Peduto said Sunday that it was up to the families to decide whether they would like him to be present at a vigil for the victims.

“You know, this is a Conservative synagogue, so the funerals will be very quickly — as soon as tomorrow,” Peduto said at the news conference. “So that’s really up to the families and whether they would want the president to be here.”

The mayor also said hatred “will not have a place anywhere.”

“We know that hatred will never win out — that those that try to divide us because of the way that we pray or where our families are from around the world will lose,” Peduto said. “And in Pittsburgh, we’re pragmatic, and we find solutions to problems. We will not try to rationalize irrational behavior. We will not try to figure out ways . . . to lessen the degree of crimes such as this. We will work to eradicate it.”

Sunday did not mark the first time that Peduto has openly differed with Trump on policy issues. Last year, after the United States pulled out of the Paris climate agreement, Peduto pushed back against the president’s assertion that he “was elected to represent the citizens of Pittsburgh, not Paris.”

“As the Mayor of Pittsburgh, I can assure you that we will follow the guidelines of the Paris agreement for our people, our economy & future,” Peduto tweeted in response.