BOSTON (CBS) – Transit Police arrested a Dorchester man after he allegedly sprayed bear repellent on a Red Line train.

It happened just before 7 p.m. Tuesday near Andrew Square. Three people complained of respiratory and eye irritation. They were treated by Boston EMS.

READ MORE: Fraternity Suspended As Police Investigate Death Of UNH Student Vincenzo Lirosi

When officers arrived, they found 34-year-old Gregory Gomes laying down on the platform. When police walked up to him, he allegedly said “I accidentally blew it up” and showed them a bear repellent spray in his backpack.

READ MORE: When Will The Snow Start? First Widespread Snow Of The Season Expected Wednesday For Massachusetts

Gregory Gomes. (Image Credit: Transit Police)

Witnesses said Gomes removed the large can of bear repellent and sprayed it for a “few seconds,” Transit Police said.

MORE NEWS: Massachusetts Was The Most Generous State In 2021, GoFundMe 'Giving Report' Finds

After a brief struggle, Gomes was arrested. He was charged with assault and battery with a dangerous weapon and resisting arrest.