A man went on a shooting rampage Tuesday in Fresno, California. The suspect randomly shot at four white men, killing three, before he was taken into custody.

Kori Ali Muhammad, 39, reportedly shouted “God is great” in Arabic during at least one of the shootings and later telling police that he hates white people, authorities said.

Fresno Police Chief Jerry Dyer said officers took Muhammad into custody in connection to the shootings. Dyer said the suspect went by the nickname “Black Jesus” and made Facebook posts about hating white people and the government.

He also was wanted in connection with another shooting days earlier, in which a security guard was gunned down at a Fresno motel after responding to a disturbance, reports ABC News.

The shooting spree began around 10:45 a.m. local time. One person was shot in a PGE utility truck, a second person was shot on Fulton Street, and a third person was shot in the parking lot of Catholic Charities, according to Fox News.