Jury to begin deliberations in beating of undercover officer