Fresno Police Chief Jerry Dyer said officers have taken Kori Ali Muhammad, 39, into custody in connection to the shootings. Dyer said Muhammad went by the nickname "Black Jesus."
Dyer said at a news conference Muhammad has made posts against white people and the government on his Facebook page, and that all the people he shot were white men.
He also shouted "Allahu Akbar" as police tackled him to the ground, according to Dyer.
The shooting spree began around 10:45 a.m. local time, when one person was shot in a PG&E utility truck, a second person was shot on Fulton Street and a third person was shot in the parking lot of Catholic Charities, FOX 26 News reported.
Muhammad was wanted in connection to the killing of an unarmed security guard at a Motel 6 last week, police said.