I generally only attempt to scrutinize government action, and not government reason for action. Random citizens are at such an information disadvantage that I think it would be impossible to have an informed opinion as an outsider on the reasoning.
It could be as simple as "Iran kept trying to assassinate me so I'm going to assassinate them". Maybe he was pressured by Israel, I really have no idea.
As opposed to the myriad of reasons he and the administration have given, differing sometimes on an hourly basis, as to why he started it?