His efforts helped contain the fire before it could reach a pile of books inside the flat.