Iran and its proxies and allies — from Syria to Lebanon to Gaza — have taken a beating in military engagements this year.