He was booked into West Valley Detention Center in Rancho Cucamonga on suspicion of arson, possession of a destructive device and ignition of a destructive device and is being held in lieu of $1 million bail.
"Responded to a possible fire structure at [Sam's Club]", the Ontario Police Department tweeted earlier Thursday.
The device was found in an Ontario store at around 2pm (10.20pm GMT), prompting a massive response from officers and firefighters, the Ontario Police Department said.
Sam's club employees quickly used fire extinguishers to quell the blaze.
Authorities say all of the customers and employees were accounted for and there doesn't appear to be any damage to the building.
A responding officer saw the suspect fleeing in a Honda Civic and attempted to stop the auto, according to the statement. Police said Hugo Gonzalez, of Fontana, fled the scene after setting off the explosions and led officers on a short chase before he was arrested. In the vehicle, investigators found materials similar to those used in the devices detonated in the store. His apartment and a second associated apartment were searched, and no additional devices were found. According to the Ontario Fire Department's bomb squad, the devices were set off at opposite ends of the store.
Police were also searching a home connected to the man in the neighboring city of Fontana, Guerrero said.
A spokesman for Sam's Club didn't immediately comment on the incident.
Surveillance video from an Ontario Sam's Club shows aisles filling with smoke after the detonation of two explosive devices inside the store. The male suspect fled the store prior to the police arriving, but he was located fleeing in a Honda Civic.