JACKSONVILLE, Fla. (WFLA) — A man wielding a large ax was shot by police after allegedly trying to get inside of a Jacksonville elementary school on Friday.

According to a First Coast News report, Duval County Schools Superintendent Diana Greene said the man tried to get into Ruth Upson Elementary School through two different doors. Then, the school went into lockdown.

A school safety assistant followed the man off campus to a nearby church, where Duval County Schools police officers confronted him. Police said they ordered the man to drop the ax, but he refused, and was shot one time by an officer.

Police later identified the man as 37-year-old David Hurley, according to First Coast News. He remained in critical condition at the hospital on Saturday.

Hurley faces charges of assault with a deadly weapon without intent to kill, trespassing on school property with a firearm or other weapon, and aggravated assault on a law enforcement officer, first responder or security guard.