The Taliban claimed responsibility for a truck bomb attack on a military and logistics services compound in Kabul early on Monday.