OAKLAND — A man armed with a knife was shot by police Friday morning in East Oakland, authorities said.

The man was taken by ambulance to a hospital, where he was in stable condition later that afternoon.

Police did not identify the man, but family members said he is 28-year-old Corey Pollard. Family members gathered outside Highland Hospital declined further comment on Friday.

The shooting took place at 9:42 a.m. in the 1000 block of 88th Avenue, a narrow street of homes, police said.

Officer Frank Bonifacio said that two officers on patrol were flagged down by someone in the area who reported that a nearby man was acting erratically.

The officers — a rookie and his field training officer, dressed in full uniform and in a marked police vehicle — confronted the man, who was holding a knife in the middle of the street.

An altercation ensued before one of the officers fired at least one shot at the man. Police did not report which officer fired the weapon.

The officers gave the man first aid until paramedics arrived. The man was transported to a hospital, where authorities said he was in critical but stable condition Friday afternoon.

The officers wore body cameras, but officials did not immediately say whether they were activated during the confrontation.

Both officers have been placed on administrative leave, standard protocol in such cases. Oakland police’s homicide unit and internal affairs division are investigating, per department protocol.

The shooting brought top police commanders, including Chief Sean Whent, to the area, where numerous streets were blocked off as police investigated.

The shooting marks the second time in 20 months that an Oakland police officer has shot at a person, though during the same period there have been shootings in Oakland, some fatal, by officers from other police departments.

Police shot at a 24-year-old man Feb. 7 after he swung golf clubs at officers but he was not hit by gunfire. Officers went to the 2100 block of East 17th Street at 12:14 a.m. after the man’s family called to report he was mentally unstable and threatening to hit family members with a weapon.

After officers and a sergeant arrived, the man tried to hit them with the clubs, Watson said. Officers tried to shock the man with a Taser before one of the officers fired a gun as the man continued to try to strike at officers and ignore commands to stop, Watson said.

On Feb. 3, two Emeryville police officers shot and killed 38-year-old Yuvette Henderson in Oakland. Henderson, a suspect in a Home Depot theft that day, reportedly pointed a gun at officers after being accused of trying to carjack three people.

Staff writer David DeBolt contributed to this report. Contact Natalie Neysa Alund at 510-293-2469. Follow her at Twitter.com/nataliealund.