A Pakistani Taliban leader has claimed responsibility for an attack on a US immigration in which 13 people were killed.