Under international law, members of an armed group are not considered civilians while they are participating in hostilities.
That being said there are several drone strikes of declared "terrorist" that I would consider illegal, especially when there are collateral casualties involving civilians.