Rhode Island man gets prison time for fatally beating neighbor's small dog with cane