A Huntington Beach SWAT team officer underwent surgery after he was accidentally shot by another officer while they were cleaning their firearms, police said Thursday morning.

About 10 p.m. Wednesday, firefighters responded to a report of a gunshot victim at the station, according to Metronet, an emergency dispatch service.

Watch video from the scene.

Capt. Russell Reinhart with the Huntington Beach Police Department said the accidental shooting occurred as members of the Huntington Beach SWAT team were cleaning and servicing their firearms at the police station after a day of training.

“One officer’s firearm accidentally discharged,” Reinhart said in a statement Thursday. “The round struck the floor and ricocheted, striking another officer in the leg.”

Reinhart did not release the names of the involved officers.

The injured officer was taken to UCI Medical Center in Orange and was recuperating Thursday after he underwent surgery. His injury is not life-threatening and he is expected to make a full recovery, Reinhart added.

The Orange County Sheriff’s Department is investigating the incident, said Reinhart, adding that there will also be an internal investigation. It is routine for the Sheriff’s Department to investigate officer-involved shootings.

Contact the writer: amolina@ocregister.com or 714-704-3795