LONG BEACH >> A Long Beach City College student and parolee shot Thursday by police on the Pacific Coast Campus after running through a classroom and shooting at an officer was booked early this morning, Long Beach Police officials said.

The man, identified as Travis Brown, 26, was booked into Long Beach Jail on a parole violation just after midnight and was being held without bail, Los Angeles County Sheriff’s booking logs showed.

He was shot by a patrol officer either in the leg or buttocks, according to Long Beach Police Chief Jim McDonnell, who spoke at the scene.

No other students or officers were injured.

A handgun was recovered at the scene, police said.

“The officer never hesitated,” Deputy Chief Robert Luna said. “His safety took a back seat to everyone on campus. This is how we keep kids safe in this city.”

The last active shooter scenario training was held in April, Luna said.

“I think we avoided a tragedy here,” he said.

At about 5:30 p.m. Thursday, officers on patrol noticed Travis and three others in a campus parking lot arguing, and when police approached, Brown reportedly took off running, authorities said.

Officers chased the man and gave him orders to stop and surrender, officials said.

During the foot chase, Brown reportedly pulled a handgun out of a backpack as he entered the automotive shop that was occupied by about six to 10 students, according to police.

He ran through the classroom and when he exited he was in a position waiting for the officer and then fired, McDonnell said.

The officer then shot back, hitting the man, according to McDonnell.

“It could have been a lot worse,” he said. “We’re fortunate that … none of the individuals in the classroom or the officer or any bystanders walking around the campus were struck.”

An investigation was underway. It is unclear what the argument was about, or why the man ran.

About two dozen agitated people, some of whom say they are Brown’s family and friends, congregated at the scene. The mother and pastor of the injured student identified him as Brown.

Brown’s friends claimed the 26-year-old student had just finished taking a test and left the classroom to smoke.

Police shut down the area surrounding the campus from PCH to Walnut and May Avenue to PCH for several hours, and students and staff close to the crime scene were instructed to “shelter in place.”

LBCC officials posted a notice on the campus website late Thursday that stated the campus was safe and classes would continue.

The campus, which contains the college’s aviation and mechanics buildings, sits on a city block between Orange and Walnut avenues and 20th Street and PCH.

This is the second officer-involved shooting this year involving Long Beach police.

Contact Beatriz Valenzuela at 562-499-1466.

Contact Greg Yee at 562-499-1476.