Terrorism aims to bring terror to citizens, not armies. That is why it differs from war. They target random people. Of course they are going to ignore the laws of war.