If military pressing is causing you pain and you are sure that no other excercise is causing you this discomfort then STOP performing military pressing AT ONCE.

Stop those excercises that cause you pain.