Representational picture

At least two people were killed and seeral others injured, including the suspected gunman, in a shooting on Wednesday at a United Parcel Service facility in San Francisco, local media reported.

San Francisco police on Twitter confirmed a shooting had taken place and advised people to avoid the area.

The suspect was hospitalized in police custody, local media reported.

Victims were taken to the Priscilla Chan and Mark Zuckerberg San Francisco General Hospital, spokesman Brent Andrew said. He said he could not say how many patients were taken to the hospital or give their conditions.

The shooting occurred in the area of a United Parcel Service <UPS.N> facility, CBS San Francisco and other local media outlets reported, citing authorities. A San Francisco police representative could not immediately be reached for comment.