New Idea magazine said when it ran the story in January it was unaware of an agreement between the British Ministry of Defense and major news organizations not to disclose Harry's deployment to protect the 23-year-old prince and his fellow soldiers.
The story eventually resulted in the royal being sent home.
"We did not knowingly breach any embargo and were not party to any agreement for a media blackout on the story," the magazine said. "However, and more importantly, we do acknowledge that our actions in publishing the story can be reasonably viewed as insensitive and irresponsible."
The magazine apologized to its readers and to troops and their families who serve abroad.
Harry spent almost 10 weeks in Afghanistan's volatile Helmand province, with his deployment kept secret by a deal between officials and British and media - including The Associated Press.
Robert Jobson, author and Royal Correspondent for the London Evening Standard March 3 that the Taliban learned of Harry's presence by late last year, and hoped to "take him out and have all the publicity that would go with that."
The prince, Jobson observed, is "a very young man. He was enjoying the military combat that he was out there doing. He's a bit disappointed (to have it end), but hey, he's in the army, and that's life."
New Idea is a celebrity and lifestyle magazine with a monthly circulation of about 390,000 copies. A magazine spokesman did not immediately return calls on Monday.