If it targets combatants, it isn't terrorism.
If it targets others, it is. Some countries have ideas like that only non-state entities can commit terrorism, but that is nonsense. My own country's laws don't distinguish between state and non-state acts in its terrorism legislation, for example.