Pakistan mediates as Iran warns Lebanon