A is smaller than B but not than C.
Than is not necessarily required for the sentence to make sense. 'than' is a comparative function to compare two or more things so it that is why it is also acceptable in this sentence.
An alternative would be: A is smaller than B, but not smaller than C
or: A is smaller than B, but not C.
Feel free to message me if you have any further questions