I have had issues with an insect, which looks like a beetle, in a rented house in a humid mediterranean climate. I noticed they had infested a wooden chair from hearing a faint rattling sound in the night. So I left the chair outside the house. Now I am also hearing a faint sound again and I see insects on the floor beneath the wooden bed frame.
Here is a picture of three specimens shaken from the bed frame:
Here is a picture after crushing them with a fingernail, which makes a soft crackling sound:
And here is a picture of the holes they leave in the wooden frame:
What is the name of the animal, and how to get rid of it and prevent further infestation?
Update: The house is brick and mortar, not wood. The floors are made of ceramic tiles. It has some wooden elements, such as closets. The house has no visible wooden joists.