A person was shot and critically injured in San Francisco’s Duboce Triangle neighborhood on Sunday night, authorities said.