Here's a thread where someone else had the same problem. I didn't read all the way through it, but it looks like there are some great suggestions in it. All hope is not loss - this is definitely resolvable without sending it off.
https://www.pentaxforums.com/forums/pentax-k-30/215709-help-help-please-lens-stuck.html
well, it at least has some good info on WHAT has happened. jiggling, wiggling, af/mf switch, something really thin like a feeler gauge or something may help. Regardless, it's not permanently stuck - you should be able to get it off without damage so long as you are gentle and keep at it.