Al Qaeda in the Arabian Peninsula has claimed responsibility for an attack at France's Charlie Hebdo.