En offiser i Ukrainas militære etterretningstjeneste HUR skal ha tilstått drapet, ifølge Ukrainas riksadvokatkontor.