Faraaz Ayaaz Hossain has garnered widespread praise on social media, with netizens hailing him as "hero".
Hossain, who was studying at Emory University in Atlanta, US, had come to Bangladesh on his summer holidays and visited the Holey Artisan Bakery with two foreign friends - Abinta Kabir, a US citizen and also a student of Emory University, and Tarishi Jain, an Indian and a student of the University of California, Berkeley.
Hossain refused to leave his friends and was subsequently killed.
Businessman Rezaul Karim, whose son, daughter-in-law and two grandchildren were taken hostage but later freed, told The Daily Star: "My daughter-in-law told me that she heard a Bangladeshi youth refused to leave the restaurant when militants offered to free him."
"They wouldn't let two of his friends go," he said.
Twenty people were killed in the 12-hour siege on the cafe in the diplomatic area in the Bangladeshi capital by suspected ISIS militants on July 1.
