Thanks for query,
It seems that you might have pulling of tricep muscle and went into spasm.
It is also possible that there may be some thing wrong with shoulder joint.
Go for X ray
Take analgesics with muscle relaxant
Aoolt pain relieving cream locally.
Ok and be.