We must always ask ourselves, "who was the target?" If the target of the mission was civilians, it's terrorism. If civilians die unintentionally in a military operation, then it is not terrorism. Otherwise, the Allied bombing of Dresden, which killed many, many civilians, would be morally equivalent to the Nazis' attempted genocide of all the Jews.
from the article: Two hurt in missile strike on bus carrying students near Gaza