One police officer has been killed and six injured in three separate shootings in Florida and Pennsylvania.