Not only soldiers were among the victims, but also civilians.
As LP rightly said, you can say this, but it is more normal to use subject-verb inversion when the sentence begins with a negative or near-negative expression:
Not only were (there) soldiers among the victims, but also civilians.
Never have I seen such an appalling sight.
Only when you have seen these animals in their natural surroundings, can you appreciate their true beauty.