Israel provided atomic material, Taiwan constructed it and S. Africa tested it. I have no idea if this is true, but back in the Soviet days when it supposedly happened, the Soviets said it happened and railed against it.
Interesting details. I'll bet Taiwan didn't give it up like SA...
I belive it was known as the Vela incident.