As many as five people were killed in an attack near the presidential palace, which is one of the most secure areas in the Afghan capital.