Disclosure: I think the dude was a combatant in the middle of a well known and wide ranging battlefield, and was probably masterminding the things the gov’t has accused him of.
However, wrt whether this was well thought out or rash? POTUS is sometimes a bit vain and values his self image, and after railing against endless ME wars during campaign think has taken the recent attacks/rhetoric as personal affronts and personal challenges...leading to a rash decision.
Throw what you thought were red lines for IR out, because the calculus has changed a bit. I expect a lot of asymmetric activity soon...