The suspect was barricaded in his home while the officer was being treated at a local hospital, officials said.