Man gets 87-year prison term in police shooting