(ABC News) Twenty-four Amazon workers in New Jersey have been hospitalized after a robot accidentally tore a can of bear repellent spray in a warehouse, officials said.

The two dozen workers were treated at five local hospitals, Robbinsville Township communications and public information officer John Nalbone told ABC News. One was in critical condition while 30 additional workers were treated at the scene.

All of the workers were expected to be released from the hospital within 24 hours, WABC reported Thursday.

Note: Read our discussion guidelines before commenting.