An American citizen detained for a drug offense has escaped from a prison on the Indonesian resort island of Bali.