The officer's name was included by U.S. Embassy staff on a list of American officials who met with Obama Sunday during a surprise visit to Afghanistan.
The list was sent to a Washington Post reporter who was representing the news media, who then sent it out to the White House "press pool" list.
The Associated Press is withholding the officer's name at the request of the Obama administration, which said its publication could put his life in danger.
Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.