Police departments across the United States have updated tactics and procedures following targeted attacks on police officers in Dallas, Texas and Baton Rouge, Louisiana that killed eight police officers.