San Francisco sacked Alex Smith three times and B.J. Daniels led the 49ers to their first preseason touchdown in a 15-13 win over the Chiefs.