Resonant states for a three-body problem under an external field