Making Generated Images Hard to Spot: A Transferable Attack on Synthetic Image Detectors