State officials have confirmed a bobcat that attacked a Brookfield, Massachusetts man and his nephew this past weekend had rabies.