St. Louis County officer shoots suspect after being attacked