I'm not going to throw my hat into the ring on "is Hamas/Israel a terrorist organization", but I'm going to say my take on what the phrase is and what it means. I am a language and history nerd, so pardon me.
On the face of it, the first fact is that the word "terrorist" is extremely emotionally charged in the context of war, and the focus on the word is a modern invention. As a history buff, I can tell you that almost every warring nation in history could be considered a terrorist force, some more than others of course. "Strategic bombing" of civilians during World War II is essentially just terrorism from a plane with the explicit goal, from the "great minds" of the operation, being to shock people into going against their government. While some strategic bombing was of (civilians, mainly) doing things such as factory work, a decent amount of the time it really was just to decrease moral.
I will also say here that is there is a difference between a group being a "terrorist organization" and committing acts of terror; this comes down to geopolitics and the legitimacy of a group. The United States, for instance, has committed acts of terror, but that does not make it a terrorist organization, because a "terrorist organization" inherently adds a connotation that it is a group mainly designated to commit terrorist acts, and not mainly a governing body/nation.
Essentially, for me, a terrorist organization is an organization that is not the legitimate governing body of a nation (regardless of if they wish to be) that commits terrorist acts. Terrorist acts being defined as attacks on a civilian population in order to incite terror.
As a bonus round, what is committing an act of genocide? Genocide is also a modern concept, and it is also emotionally charged; however, it is a word that can objectively be used in this context. Genocide is an all-encompassing word that describes a movement/initative towards the eradication of a group of people for specific traits that you aim to remove. This includes starving a population, directly killing them, forcing them to remove parts of their culture, destroying their culture, spreading disease amongst them, getting rid of ways for people of a group to know they are of that group, etc. with the express intent of eradication.
For instance, the idea of assimilation in a lot of historical contexts is actually genocidal, since the intention is to get rid of their culture, heritage and identity via indoctrination.
One of the keywords with all of the above words is intent, because killing civilians is and always will be a part of war and geopolitical conflict. Always. You don't bomb another country hundreds, thousands, tens of thousands of times without innocent people dying.