Key is to link connect the signal via the first relay to GND, so the relay keeps itself on. Then the same signal is used to switch on the second relay. The switch breaks the circuit in K1, and that switches off both relays.
You may need to add an extra transistor to invert the signal from your PIR (which is probably active high).