A Los Angeles man was arrested by federal agents Saturday and charged with illegally transporting tons of explosives – days after a blast that injured 17 people as local police attempted to safely detonate the fireworks. 

Arturo Ceja III, 27, had allegedly been storing around 32,000 pounds of fireworks and "dangerous homemade devices," including more than 500 boxes of commercial-grade fireworks, in his South Los Angeles home, the U.S. Attorney’s Office in Los Angeles said Saturday. 

Ceja is accused of making several trips to Nevada to buy the fireworks – mainly at retailer Area 51 in Pahrump – last month and bringing them back to his home in rental trucks, the U.S. attorney’s office said, noting that fireworks can sell for up to four times as much in California as in Nevada.

Personal fireworks are illegal in California. 

The explosion happened Wednesday when Los Angeles police responded to the home and a bomb squad tried to detonate the most "unstable" improvised explosive devices inside a containment vehicle. 

LOS ANGELES EXPLOSION: 17 INJURED AFTER BOMB TRUCK CARRYING ILLEGAL FIREWORKS EXPLODES

"Clearly protocols were followed and pursued, but something happened in that containment vehicle that should have not happened and we don’t know why," Los Angeles police Chief Michel Moore said Wednesday. "We intend to find out why."

This July 2021 photo released by the ATF/United States Attorney's Office Central District of California, shows boxes of illegal large homemade fireworks explosives in South Los Angeles. Authorities found over 500 boxes of commercial grade fireworks in large cardboard boxes. (Associated Press)

Nine police officers and a federal agent were among the 17 hurt. The explosion also flipped and damaged cars and smashed windows in homes and a laundromat.

Ceja was previously arrested Wednesday on suspicion of possessing fireworks and destructive devices, as well as suspicion of child endangerment because two children were found at the home, police said, according to Los Angeles's KABC-TV

The police have faced heavy criticism for trying to detonate the devices in the neighborhood, according to The Los Angeles Times

Ceja told investigators he bought the homemade devices, constructed of cardboard paper, hobby fuse and packed with explosive flash powder, from a man selling them from the trunk of his car in the parking lot of Area 51, the U.S. Attorney’s Office said. 

"Ceja did not possess an ATF explosives license or permit of any kind that would authorize him to transport either aerial display fireworks or homemade fireworks made with explosive materials, including but not limited to flash powder," the complaint affidavit written by a special agent with the ATF (Bureau of Alcohol, Tobacco, Firearms and Explosives), said.

CLICK HERE TO GET THE FOX NEWS APP

The complaint added, "[T]he fireworks were stored outside and in an unsafe manner, namely under unsecured tents and next to cooking grills."

Ceja was expected to remain in custody until his federal court appearance Tuesday.