Reagan withdrew from the Lebanon after the beirut bombing. That was a huge boost to the morale of you enemies.
That was a mess. You can argue about our role there - but to do nothing only demonstrated that Reagan was often more talk than action when it came to many issues. About the only time he ever really responded was to Libya/Grenada