Somali Islamist militant group al Shabaab have claimed responsibility for an attack in the Kenya capital of Nairobi, their spokesman told Reuters.