President Barack Obama says America is "horrified" over the shootings of police officers in Dallas and there's no possible justification for the attacks.