(AP) — An automated machine punctured a can of bear repellent at an Amazon warehouse in New Jersey on Wednesday, releasing fumes that sickened workers and sent two dozen to hospitals, officials said.

At least one of the workers was in critical condition. The injured workers were taken to five hospitals, officials said. It was not clear if any were released.

About 30 other workers were treated at the warehouse in Robbinsville, authorities said. Most people were reporting difficulty breathing or burning in their throats or eyes.

Robbinsville spokesman John Nalbone told NJ.com that an automated machine damaged a 9-ounce (255-gram) can of bear repellent containing a concentrated amount of capsaicin, an active component of chili peppers. He said the fumes were contained in one part of the building’s third floor, which was cleared for a few hours, though the warehouse as a whole was not evacuated.

Hundreds of workers are normally inside the building during work days.

Amazon confirmed that the accident dispersed strong fumes in the area of the facility. The incident is under investigation.

“The safety of our employees is our top priority, and as such, all employees in that area have been relocated to a safe place and employees experiencing symptoms are being treated on-site,” the company said in a statement issued shortly after the accident. “As a precaution, some employees have been transported to local hospitals for evaluation and treatment. We appreciate the swift response of our local responders.”

Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.