OAKLAND -- A taxi driver standing outside his cab in downtown Oakland was shot in the leg Friday afternoon and ran into a nearby hotel for help, police said.

Oakland police have detained a man for questioning, but a second man remains at large, Officer Johnna Watson said.

The shots were fired at 11th Street just west of Broadway about 3:10 p.m. The driver was hit while standing next to the hotel, waiting for fares.

Police said two people were shooting at each other, but neither shooter was hit. Instead, the cab driver standing about 100 feet away took the errant bullet, then went into the Marriott Hotel for help, police said. At least one bullet struck a near a side door to the hotel, and two others were lodged in the building.

The name and age of the victim were not released and his condition was not available Friday. He is the only known victim.

The shooting happened just as fans of the Ohio State Buckeyes football team were checking into the hotel. The team is staying at the hotel as they prepare to take on the Cal Bears on Saturday at UC Berkeley, but players didn't arrive until after the shooting.

BART trains were delayed briefly at the 12th Street station while officers checked out reports that the gunman may have fled into the station, but the station was cleared and trains were moving again by about 3:40 p.m.

BART police and federal police in the area as well as civilian witnesses helped Oakland police locate the suspect, Watson said.

"The key was the witnesses," she said. "They stayed on scene and provided information that led to a detention of a possible suspect."

Staff writer Harry Harris contributed to this report. Follow Kristin J. Bender at Twitter.com/kjbender.