A 23-year-old man who ran away from a mental health clinic in Florida on Sunday was critically wounded in a police shooting after officers encountered him armed with pepper spray and a knife, authorities said.

The man, whose name was not immediately released publicly, had been taken to The Vines Hospital by family members to be admitted just before 12:30 p.m. when he began "acting erratic" and ran from the clinic, the Ocala Police Department said.

Officers found the man about 10 minutes later near the 5500 block of SW 27th Avenue.

When officers approached the 23-year-old, he was determined to be "an immediate threat," prompting officers to use deadly force and shoot the man, according to the department.

ARIZONA POLICE SAVE 6-MONTH-OLD SHOT MULTIPLE TIMES, FIND SUSPECT DEAD IN BURNING HOME AFTER HOSTAGE STANDOFF

police investigating scene of shooting

A man who ran from a mental health clinic in Florida was shot after police found him armed with pepper spray and a knife, according to authorities. (Ocala Police Department)

Police later said the man was armed with pepper spray and a knife when officers made contact.

The Vines Hospital

Police said the man's family had brought him to The Vines Hospital when he began "acting erratic" and ran away. (FOX35 Orlando WOFL)

Preston Bare told WESH-TV that he was heading home when he witnessed the encounter between the man and police.

"The cop was holding the gun, and there was another cop holding the Taser on him, and he was patting on his chest, pleading with the man to please drop whatever he had in his hands," Bare told the station. "Then he got tased, and he started to immediately run toward the cop that had his gun drawn on him, spraying him while he's running with the knife in his hand, and then he got shot."

ARMY RESERVIST'S BROTHER-IN-LAW DESCRIBES STRUGGLE TO GET HELP BEFORE LEWISTON MASS SHOOTING

police car at scene of shooting

No officers were injured during the incident. (FOX35 Orlando WOFL)

The man was rushed to a local hospital and underwent surgery. Police said he is in serious condition and has further medical procedures pending.

No officers were harmed during the incident.

 CLICK TO GET THE FOX NEWS APP

The Florida Department of Law Enforcement is assisting in the investigation, as is standard protocol.