Officer injured during shooting in San Francisco is expected to survive