A gunman walked into a San Diego-area synagogue crowded with Sabbath worshippers on Saturday and opened fire with an assault-style rifle, killing one woman inside and wounding three others in a hate crime carried out on the last day of Passover, authorities said.

The suspect, who fled the scene by car but surrendered to police a short time later, was identified by authorities as John Earnest, 19, of San Diego, the apparent author of a "manifesto" who claimed to have set a nearby mosque on fire last month and professed drawing inspiration from the gunman who killed nearly 50 people at two mosques in New Zealand.

San Diego County Sheriff Bill Gore said police and FBI were investigating Earnest's "possible involvement" in an unsolved predawn arson on March 24 at the Islamic Center of Escondido, a town about 15 miles (24 km) north of the synagogue attacked on Saturday. No one was hurt at the mosque fire.