The suspect, whose name was not released, was struck by police gunfire just before 6 p.m. as he allegedly approached an officer who confronted him during the rampage.
"The suspect approached him with what was described as a machete or a small sword. He approached the officer and an officer-involved shooting ensued," said Inglewood Police Lt. Gabriela Garcia.
The suspect was transported to a hospital where he later died of his wounds.
The man's motive was not known.
No officers were hurt.
City News Service contributed to this report.