In the next three minutes, police say Muhammad killed two more people and shot at several others, shooting 16 rounds of bullets on a stream of people who happened to be in the wrong place.
The Fresno County coroner's office released the identities Wednesday of all three men who were killed in the Tuesday morning shooting.
As he was arrested he shouted "Allahu Akbar" - God is great - but police said the shootings had 'nothing to do with terrorism in spite of the statement he made.
Muhammad, 39, will face four counts of murder and two counts of attempted murder, officials said.
The man accused of slaughtering four people in Fresno claimed to be a Muslim - who also practices voodoo, police said Wednesday.
Muhammad told officers who arrested him that he was the man they were looking for, Mr Dyer said, saying: "I did it".
According to Fresno Police Department Chief, Jerry Dyer, the department apprehended Mohammed at the scene after two gunshots were detected through ShotSpotter. The suspect, who was armed with a revolver, then dropped shell casings and reloaded his gun before he set off to Catholic Charities on North Fulton Street in Fresno, Dyer said.
Hours before the shootings, police had issued a news release saying Muhammad, who was suspected in the shooting death of a white security guard last week, was armed and risky. Shortly after, he encountered another resident and shot and killed that person, police said.More news: No United Airlines Firings Over Passenger Dragging At O'Hare: CEO
"It looks like a guy carrying his groceries home from the store", said Hughes, 66, who rushed home after receiving a frantic call about the shootings from a neighbor. The gun may have been picked up by someone else, Dyer said. He posted on social media about black separatism, reparations, the "Black Lives Matter" movement and white devils. Dyer called it a "random act of violence". "He said he did not like white men and said white people were responsible for keeping black people down", Dyer said. More serious crimes were dismissed and felonies were reduced to misdemeanors.
The suspected gunman in a Fresno rampage that killed three people told relatives there was a war between black and white people.
The shootings occurred within a block-and-a-half of each other, Dyer said.
"Immediately upon the individual seeing the officer he literally dove onto the ground and was taken into custody and as he was taken into custody he yelled out 'Allahu Akhbar, '" Dyer said. His father, Vincent Taylor, said Muhammad believes the USA is in thee midst of a race war. As for a motive, police said it had something to do with his longstanding hatred.
"On what appeared to be Muhammad's Facebook page, he repeatedly posted "#LetBlackPeopleGo" and encouraged "black warriors" to "mount up".
"Kori Ali Muhammad is presently suffering from a mental disease or defect rendering him mentally incompetent to the extent that he is unable to understand the nature and consequences of the proceedings against him or to assist properly in his defense", wrote U.S. District Court Judge Oliver W. Wanger in October 2005.
Police haven't commented on Williams' race.