Obama heading to Dallas after police killings