Police: Teen fatally shot after shooting St. Petersburg, Florida, officer in the leg

This 2013 booking photo provided by the St. Petersburg Police Department shows Austin Goodner while in juvenile detention. Goodner, 18, was shot and killed by Florida police on Sunday, May 17, 2015, after authorities said he argued with four people near a St. Petersburg city pool, shot a man on a bike in the arm, and then shot a police officer in the leg at his home in St. Petersburg, Fla. (AP Photo/St. Petersburg Police Dept. via AP) (The Associated Press)

Officials say police fatally shot an 18-year-old at his Florida home after he shot an officer in the leg.

St. Petersburg police Chief Anthony Holloway says 18-year-old Austin Goodner was wanted in another shooting when he was killed Sunday night. Earlier in the day, a victim told police that Goodner had pulled a gun, shot him in the hand, and fled on his bicycle.

Officers went to Goodner's house. Police say that his parents told them their son wasn't there but that he suddenly appeared in the yard and shot the officer. Police say other officers confronted him, he fired again, and they returned fire, hitting him in the upper body.

The injured 40-year-old officer is recovering. His name hasn't been released.

Police and the state attorney's office are investigating.