Three police officers were shot in Washington, D.C., while trying to serve an arrest warrant at a home, police said.