Danville police officer injured in shootout