Man caught masturbating to have sex with a married woman