One woman is dead and three other people were injured Saturday in an attack on Chabad of Poway synagogue in Poway, California, authorities said.

San Diego County Sheriff William Gore said police have a 19-year-old suspect, identified as John T. Earnest from San Diego, in custody and he is being interviewed by authorities. The man was taken in by police after he called authorities with his location and claimed to be involved in the shooting, the sheriff said.

The suspect had an AR-type rifle when taken into custody, authorities said.

The incident started just before 11:30 a.m. on Saturday, the last day of the Jewish holiday of Passover.

"Deputies were called to Chabad Way just before 11:30 a.m. There are injuries," the Poway Sheriff's Station tweeted Saturday afternoon.

The Sheriff indicated the shooting possibly ended after the man's gun malfunctioned. An off-duty Border Patrol officer was at the synagogue and engaged in gunfire with the suspect as he fled, missing him but hitting his car.

Four people were taken to the hospital, including a rabbi who was injured.

Though Poway Mayor Steve Vaus called the attack a "hate crime," authorities did not reveal a motive. Authorities said they were reviewing the suspect's social media posts and confirmed he wrote a manifesto.

Gore said law enforcement was looking into whether Earnest was involved with the mosque burning in Escondido, California based on "digital evidence."

The fire at the Escondido Islamic Center occurred last month after seven Muslim worshipers were gathered at the mosque and noticed a fire outside. They were able to put the fire out without anyone being injured. Anti-Muslim graffiti was found on site referencing the mosque shooting in Christchurch, New Zealand, earlier that month.

In the Poway shooting, those injured were taken to Palomar Medical Center, the San Diego County sheriff's office announced. A Passover celebration was scheduled to be taking place at the time. The holiday ends at sundown Saturday.

The law enforcement office encouraged people to continue to follow the San Diego sheriff's Twitter account and requested caution not to "spread misinformation that could cause concern or panic."

In October, exactly six months ago to the day, a gunman killed 11 people during celebrations at the Tree of Life synagogue shooting in Pittsburgh, Pa. The accused gunman, Robert Bowers, was indicted in January on 65 counts that include federal hate crime charges. He could face the death penalty.

President Trump expressed his sympathies on Twitter for those affected by the Poway shooting.

"Thoughts and prayers to all of those affected by the shooting at the Synagogue in Poway, California. God bless you all. Suspect apprehended. Law enforcement did outstanding job. Thank you!" Trump said.

Allison Elyse Gualtieri contributed to this report.