A Florida police officer was shot and killed near downtown St. Petersburg, becoming the city's third officer to be killed in the line of duty in less than a month.