Resonant Andreev reflection in a normal-metal-quantum- dot-superconductor system