KABUL — Taliban gunmen attacked Afghanistan's presidential palace and surrounding buildings, including the CIA's Afghan headquarters, early on Tuesday, with explosions and gunfire shaking the city center.