(FOX40.COM) — A man was hospitalized after being shot by Fairfield Police after allegedly walking with what “appeared to be a firearm” near a middle school, according to Fairfield Police.

Police said they responded to the Tabor and Sunset Avenues area near Grange Middle School just after 1:15 p.m. on Wednesday after receiving a call about the man.

The Fairfield-Suisun Unified School District said it implemented a lockout procedure in response to the incident. Regular school activities have resumed, however.

Police said that officers encountered the man and ordered him to drop the gun. In response the man pointed the gun at one of the officers and one officer fired their gun, striking the man, police said.

No officers were injured and the man was taken to a hospital for treatment of a gunshot wound, police added. The suspect was treated and released from the hospital a few hours later.

East Tabor, specifically the area between Sunset and Falcon, was shut down for several hours as investigators processed the scene, police said.

During an investigation police said it was determined the man’s firearm was a BB-gun that was “designed to look like a real semi-automatic handgun.”

Police arrested the 40-year-old man for felony assault on a peace officer and was booked into Solano County Jail.

The officer who fired their gun was placed on administrative leave, in accordance with department policy, police said.