Long Beach police officers shot and wounded an off-duty Los Angeles police officer early Wednesday, authorities confirmed.

Officer Jason Geggie, a 1 1/2-year veteran of the Los Angeles Police Department, was shot after Long Beach officers responded to a call about a person brandishing a gun while walking down the street, Long Beach police Sgt. Dina Zapalski said.

Officers arriving at the scene on Mira Mar Avenue shot Geggie, 26, in the arm and torso.

"The officers got there and found the suspect in the area," Zapalski said. "When they went to contact him, he was armed with a firearm, and the circumstances led to an officer-involved shooting."

She did not give additional details but said Geggie pointed a gun toward officers.

The Long Beach officer who fired his weapon was placed on standard three-day administrative leave, Zapalski said.

Geggie, a Long Beach resident currently assigned to the LAPD's central traffic division, was taken to a local hospital and was in stable condition.

He was booked for investigation of two counts of exhibiting a firearm in a threatening manner, including once in the presence of a police officer.

Zapalski said investigators were trying to determine why Geggie was armed.

"We're still trying to figure that out," she said. "We have no idea why he was walking down the street with a firearm."

Long Beach police said a gun was recovered at the scene and none of its officers were injured.

Both police departments were investigating the shooting.