Intent matters. If you are trying to destroy terrorists, it can be a messy job that results in innocent bystanders also dying, but that alone doesn’t make you a terrorist.
When you specifically target innocent civilians just to make some kind of point, you are a terrorist.