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 — a 28-year-old and a 21-year-old — were arrested in connection with the shooting, police said. Both of the suspects suffered gunshot wounds and were in stable condition at a hospital.

Police reported that six victims — four women and two men between the ages of 17 and 28 — had been shot. One was in critical condition, while the others were in stable condition.

A large crowd had gathered outside a business on the street when some type of confrontation took place prior to the shooting, authorities said. Police nearby 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 continuing to investigate the shooting.

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