NATO turned over peacekeeping duties to the European Union in 2004 .