A law enforcement official says the weapon used in the shooting death of a woman on a San Francisco pier belonged to a federal agent.