Stability, instability and interaction of solitary pulses in a composite medium