The Palestinian Iran-aligned militant group Hamas has called on Iran to not target neighbouring countries, while still reaffirming Tehran's rig.