Kerry says no military solution to South China Sea dispute