Fake punt helps 49ers beat Chiefs