In a YouTube video released by al-Qaida in the Arabian Peninsula, Nasr al-Ansi, a commander, takes responsibility for the attack on a satirical magazine in Paris.