UN envoy says Tehran reserves right to ‘give a firm response whenever and however it feels necessary’, calls on international community to condemn attack which ‘goes against international law’