BEIRUT -- A gunman demanding a Beirut bank let him withdraw his trapped savings to pay his father鈥檚 medical bills took up to 10 people hostage in a seven-hour standoff Thursday before surrendering in exchange for what a family lawyer said was US$35,000 of his money.

Bassam al-Sheikh Hussein, a 42-year-old food-delivery driver, was promptly arrested and taken away by police as he walked out of the bank. No one was injured.

Hussein鈥檚 wife, Mariam Chehadi, who was standing outside, told reporters that her husband 鈥渄id what he had to do.鈥

The hostage drama in the city鈥檚 bustling Hamra district was the latest painful episode in Lebanon鈥檚 economic free-fall, now in its third year. The country鈥檚 cash-strapped banks since 2019 have slapped strict limits on withdrawals of foreign currency assets, tying up the savings of millions of people.

Dozens of protesters gathered outside during the standoff, chanting slogans against the Lebanese government and banks and hoping that the gunman would get his money. Some bystanders hailed him as a hero.

Authorities said Hussein entered the bank with a shotgun and a canister of gasoline, fired three warning shots and locked himself in with his hostages, threatening to set himself on fire unless he was allowed to take out his money.

Hussein had US$210,000 trapped in Federal Bank and had been struggling to withdraw his money to pay his father鈥檚 medical bills and other expenses, according to the family and others involved in the negotiations.

鈥淢y brother is not a scoundrel. He is a decent man. He takes what he has from his own pocket to give to others,鈥 Hussein鈥檚 brother Atef, standing outside the bank, said during the standoff.

After hours of negotiations, Hussein accepted an offer for part of his savings, and the bank handed over US$35,000 to his brother, according to Dina Abou Zour, a lawyer and activist representing the Hussein family.

Federal Bank attorney Roy Madkour refused to discuss the terms of the negotiations and added: 鈥淭he matter now rests with the judiciary, and they will decide.鈥

Lebanese soldiers, officers from the country鈥檚 Internal Security Forces and intelligence agents converged on the area during the standoff. Seven or eight bank employees were taken hostage along with two customers, George al-Haj, head of the Bank Employees Syndicate, told local media.

Lebanon is suffering from the worst economic crisis in its modern history. Three-quarters of the population has plunged into poverty, and the Lebanese pound has declined in value by more than 90 per cent against the U.S. dollar.

鈥淲hat led us to this situation is the state's failure to resolve this economic crisis and the banks' and Central Bank's actions, where people can only retrieve some of their own money as if it's a weekly allowance,鈥 said Abou Zour, who is with the legal advocacy group the Depositors' Union and was among the protesters. 鈥淎nd this has led to people taking matters into their own hands.鈥

In January, a coffee shop owner withdrew $50,000 trapped in a bank in Lebanon after taking employees hostage and threatening to kill them.