An off-duty Sacramento County sheriff's deputy who was attending a San Francisco Giants game at AT&T Park as part of the team's law enforcement appreciation night on Tuesday helped detain a man suspected of stabbing another man near the ballpark, a San Francisco police spokeswoman said.