LOS ANGELES — The gunman entered the synagogue on Saturday yelling anti-Semitic slurs, and opened fire with an A.R. 15-style gun. He paused when the rabbi of the congregation tried to talk with him. But he fired again, shooting the rabbi in the hand.

His attack left a 60-year-old woman dead, the rabbi wounded and a 34-year-old man and a girl with shrapnel wounds.

It was the Sabbath and the last day of Passover, a holiday that celebrates Jewish freedom.

The shooting, at Chabad of Poway, about 25 miles north of San Diego, is the most recent in a series of deadly attacks at houses of worship, including the mass shooting at mosques in New Zealand last month and the church bombings in Sri Lanka this past week. It came exactly six months after one of the worst acts of violence against the American Jewish community in decades left 11 dead in a Pittsburgh synagogue.

[Update: Rabbi injured in synagogue shooting says “terror will not win.”]

Local officials called the shooting in Poway, Calif., a hate crime. The gunman, whom officials identified as John Earnest, a 19-year-old resident of San Diego, screamed that Jews were ruining the world as he stormed the synagogue, according to a government official with knowledge of the investigation who spoke on the condition of anonymity because the official was not authorized to speak publicly.