NASA officials have confirmed that the space shuttle Atlantis was hit by a piece of debris that nicked part of its heat shield.