Dempsey: We will act if Islamic group threatens US