The unmanned capsule undocked from the International Space Station after a six-day mission to deliver supplies and test the capsule for future flights with astronauts.