Eight people were injured in a shooting in downtown Oakland early Saturday, officials said.

Officers responded to the gunfire on the 400 block of 14th Street near Broadway just after midnight, according to a statement from the Oakland Police Department.

Two men — one age 21 and the other 28 — were arrested in connection with the shooting, police said. Both suffered gunshot wounds and were in stable condition.

Police reported that six others — four women and two men ranging from 17 to 28 years old — had been shot. One was in critical condition, while the others were in stable condition.

A large crowd had gathered on the street outside a business when some type of confrontation took place, authorities said. Police who were in the area on a separate call heard the gunshots and responded to the scene.

“When officers arrived on scene, multiple victims were medically transported to local hospitals,” the statement said.

Police are investigating the shooting.

Hamed Aleaziz is a San Francisco Chronicle staff writer. Email: haleaziz@sfchronicle.com Twitter: @haleaziz