His intention was to defeat him and stop him from harming anyone in Karakura Town. He never said anything about killing or not killing Aizen.