A Metro Transit Police officer used pepper spray to subdue a man who drew a knife on an officer at an entrance to the Farragut West Metro station during Thursday evening’s rush hour, according to a spokesman.

The man was treated at a local hospital for pepper spray exposure and was to be charged with felony assault on a police officer and assault with a deadly weapon, said Metro spokesman Dan Stessel. No one was injured, he said. The name of the suspect was not immediately known.

The incident occurred about 4:40 p.m at the entrance to the station at 17 and I streets Northwest. Stessel said transit police responded to a complaint of homeless people blocking an entrance. Others dispersed when told to, but one man took a “combative stance” and struck an officer when police tried to handcuff him.

When more officers arrived, transit police and the suspect struggled, and the man pulled out a knife and ignored orders to drop it. Officers arrived with a pepper ball gun, which propels balls filled with pepper spray, and shot the device at the man until he dropped the knife, Stessel said.

Police were then able to arrest the man without incident, Stessel said. The station entrance reopened at 5:04 p.m. Train service wasn’t affected, Stessel said.

This report has been has been updated.