Israel did fire at that hotel in Qatar, but considering that the hotel was hosting the entire terrorist leadership of Hamas at the time, it was far less 'random' than what Iran has done. The very fact that Iran was using cluster munitions on civilian areas (in Israel and elsewhere), which is a complete violation of humanitarian laws and a war crime in itself, should tell you what their targets were.
As for your comment on proxies, it's clear that the regime in Iran does consider things this way, but they could have avoided that by doing a simple thing: not declaring war on the US the moment they were founded.