Pick a motor to reach apogee at the desired altitude. Then fire ejection charges at apogee, and descent without a parachute.
Note that unless you separate the airframe at apogee, it will come back down ballistically, at significantly greater speeds then if you were to separate the airframe. If that is your desired scenario (hope not), then set ejection charge to fire at a time that's greater than the total flight time.