Explanation:
Snape killed Dumbledore because he knew that Dumbledore would die of old age, and he wanted to be sure the Order of the Phoenix was still fighting Voldemort.
He also knew that Dumbledore had been weakened by his time in prison, and he needed to be sure that there was no one who could stand up against him.