An explosion occurred near the Supreme Court in the centre of Afghanistan's capital, Kabul, killing at least 20 people, government officials said.