Shelling west of Baghdad killed the commander of the Iraqi army's 6th division on Monday, Prime Minister Nuri al-Maliki's security spokesman said.