US president Joe Biden has warned Tehran not to retaliate against Israel for the deaths of several senior Iranian commanders in Syria last week.