Pentagon pledges investigation into nude photo scandal