Slovakian police have arrested an alleged would-be cannibal following a gunbattle that seriously injured an undercover officer.