Looking for movie title

I only saw a small scene from the movie. It was played in the middle east or Africa. There was a US embassy or base. There were aggressive rebels trying to get in. However, the soldiers couldn’t shoot them due to international law, while soldiers were trying to reinforce the gate, an explosion happens and one of the soldier goes blind.

The movie you’re describing could be “13 Hours: The Secret Soldiers of Benghazi” (2016). The film is based on the true story of the 2012 Benghazi attack on the American diplomatic compound in Libya. The story revolves around six members of a security team who struggle to defend the American diplomatic compound in Benghazi from an overwhelming attack by Islamic militants. During one of the attacks on the compound, a soldier is injured in an explosion and loses his sight. The movie portrays the intense struggle that the security team faces as they attempt to defend the compound against the militants.