You need detach the heat sink from the CPU. Locate the four clamps holding it down, two on each side.
Taking off the clamps can be difficult. Use a screwdriver to push down on the top of the clip. Then insert a spudger below the heat sink to pull it away from the board, releasing the heat sink.
Now you can remove the CPU by pulling it straight up from the motherboard.
Be very careful when you detach the CPU. There is a connector that has hundreds of little prongs. You must not bend or break any of them! Be extremely careful.