Two people, including a student who was undergoing surgery, were shot at a New York state high school on Wednesday and a manhunt for the suspect was underway, authorities said. 

The shooting occurred around 3:45 p.m. at McKinley High School in Buffalo, the Buffalo Police Department said. Shots rang out when someone pulled out a gun and fired several rounds following a dispute between multiple people, BPD Deputy Commissioner Joseph Gramaglia told reporters. 

"We're looking to identify if they were students, or if there are other individuals that came to the school," he said. 

The second person shot was a male security guard. He was injured in the leg and was in stable condition. The condition of the injured student was not released.  

The gunfire occurred near a parking lot on the south side of the school building, Gramaglia said. He was not aware of how many shots were fired. 

He said he could not provide information on the injured student or the suspect, who remains on the loose. 

"No one is in custody," Gramaglia said, according to the Buffalo News.

Two people, including a student, were shot Wednesday at McKinley High School in Buffalo N.Y., according to media reports.  (Google Maps)

Around 100 students were still inside the school Wednesday evening and dismissals were being facilitated. McKinley High School will switch to remote learning for the next three days, said Buffalo Public Schools Superintendent Dr. Kriner Cash.

Shortly after shots were fired, SUNY Buffalo State College issued a shelter in place order.

"University Police has received a report of an armed person near campus," the university tweeted. "Last seen near McKinley High School on Elmwood Ave heading towards 198. Immediately shelter in place."

Buffalo Mayor Byron Brown tweeted that Wednesday's events represented a "dark day" for the city. 

"Schools shootings have occurred all too frequently in the country," he said during a news conference. "We never thought it would occur in Buffalo."

CLICK HERE TO GET THE FOX NEWS APP 

As of 6:30 p.m. ET, students were still being released to their parents. 

Gov. Kathy Hochul tweeted that she was monitoring the situation in Buffalo and has offered assistance to local officials.