(Adds Trump ordering U.S. flag to be flown at half-staff)
By John Altdorfer and Chriss Swaney
PITTSBURGH, Oct 27 (Reuters) - A gunman yelling, "All Jews must die," stormed a Pittsburgh synagogue during Saturday services, killing 11 worshippers and wounding six other people including four police officers, before he was arrested.
Robert Bowers, 46, of Pittsburgh, was taken into custody after a shootout with a SWAT team. Federal prosecutors charged him with 29 criminal counts including violence and firearms offenses, and violating U.S. civil rights laws.
"The actions of Robert Bowers represent the worst of humanity. We are dedicating the entire resources of my office to this federal hate crime investigation and prosecution," U.S. attorney for western Pennsylvania Scott Brady told reporters.
Earlier, U.S. Attorney General Jeff Sessions said federal prosecutors could seek the death penalty.
FBI special agent Bob Jones said the Federal Bureau of Investigation, which is leading the probe, said the crime scene was the worst he had seen in 22 years with the FBI. He said he believed Bowers was acting alone, adding: "We have no knowledge that he was known to law enforcement before today."
KDKA television cited police sources as saying Bowers walked into the building and yelled "All Jews must die."
Bowers had made many anti-Semitic posts online, including one early on Saturday. In another, he slammed U.S. President Donald Trump for doing nothing to stop an "infestation" of the United States by Jews.
Jones said Bowers was armed with an assault rifle and three handguns. He said authorities believed the suspect entered the synagogue, murdered the worshippers and was leaving when he encountered a uniformed police officer. The pair exchanged gunfire, Jones said, and Bowers reentered the building before a SWAT team arrived. After a shootout, he surrendered.
Bowers was taken to a hospital where he was listed in fair condition with multiple gunshot wounds. Victims taken to area hospitals included a 61-year-old woman, a 70-year-old man, and a 55-year-old officer. No children were killed, authorities said.
Three police officers were shot and one was injured by shrapnel, authorities said. Two of the six people injured were in critical condition.
RAGING AGAINST 'INVADERS'
A social media post by Bowers on Saturday morning said a Jewish refugee organization, the Hebrew Immigrant Aid Society, "likes to bring invaders in that kill our people. I can't sit by and watch my people get slaughtered. Screw your optics, I'm going in."
The comment was posted on Gab, a Philadelphia, Pennsylvania-based social networking service created as an alternative to Twitter. In a statement, Gab.com confirmed the profile belonged to Bowers and also said it had suspended the account and contacted the FBI about it.
The mass shooting prompted security alerts at houses of worship around the country. It follows a spate of pipe bombs found mailed in recent days to prominent political figures, mostly Democrats including former President Barack Obama.
The Tree of Life synagogue in the city's Squirrel Hill neighborhood, a heavily Jewish area, was holding a Shabbat religious service at the time of the shooting.
Police are normally only present at the synagogue for security on high holidays, Michael Eisenberg, former president of the synagogue, told KDKA.
"On a day like today, the door is open, it's a religious service, you can walk in and out," he said.
Around the time, three congregations amounting to about 100 people would have been using the building, Eisenberg said.
Shortly after reports of the shooting emerged, Trump said in a tweet he was watching what he described as a "devastating" situation.
Trump told reporters later that the killings might have been prevented if there had been an armed guard in the building.
"If they had some kind of a protection inside the temple maybe it could have been a much more different situation, they didn't," he said when asked if there was any link to U.S. gun laws.
He also called the shooting a wicked act of pure evil, called on Americans to rise above hate, and ordered U.S. flags at the White House and public buildings to be flown at half-staff. He said he would visit Pittsburgh, but did not say when.
In the city on Saturday night, mourners held a candlelit vigil for the victims under light rain. The Islamic Center Of Pittsburgh offered its deepest sympathy and condolences, and called on its community to donate blood.
The Anti-Defamation League and Jewish Council for Public Affairs described it as the deadliest attack on the Jewish community in the history of the United States.
On April 13, 2014, a pair of shootings occurred at a Jewish Community Center and a Jewish retirement community, both located in Overland Park, Kansas. A total of three people were killed in the shootings.
In 2015, a white supremacist murdered nine African Americans during a prayer service in Charleston, South Carolina.
In 2012, a neo-Nazi gunman with white supremacist ties walked into a Sikh gurdwara - or house of worship - in Oak Creek, Wisconsin, and murdered six Sikh Americans.
(Additional reporting by Alex Dobuzinskis and Steve Gorman in Los Angeles, Jarrett Renshaw and Gabriella Borter in New York, Mark Hosenball, David Brunnstrom, Timothy Gardner and Yeganeh Torbati in Washington, and Sybille de La Hamaide in Paris; Writing by Nick Zieminski Editing by Chizu Nomiyama and Marguerita Choy)
Our Standards: The Thomson Reuters Trust Principles.