بسم الله الرحمن الرحيم
(Fatwa: 946/946/M=09/1436)
Whosoever among you (husband and wife) discharges semen as a result of meeting like this in the state of fast his/her fast shall break. It shall be mandatory to make its qaza provided the penis was not penetrated in the vagina. If it is so then Kaffarah shall also be wajib. Thus if by the meeting of sexual organ you mean just touching then whosoever discharges the semen and during whatsoever fasts it is done that much fasts shall break. It shall be wajib to make qaza of the broken fasts. It is must to avoid such practice in future. You should do taubah and istighfar for the same.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband