A high-profile local Taliban figure who announced and justified the 2012 attack on teenage Nobel laureate Malala Yousafzai has escaped detention, Pakistan's interior minister confirmed a few days after the militant announced his breakout on social media.

Former Pakistani Taliban spokesman Ehsanullah Ehsan, who claimed responsibility on behalf of his group for scores of Taliban attacks, proclaimed his escape on Twitter and then in an audio message sent to Pakistani media earlier this month.

The Pakistani military, which had kept Ehsan in detention for three years, has declined to comment but, asked by reporters about the report, Interior Minister Ijaz Shah, said: "That is correct, that is correct."