Residents in a block of flats woke up to maggots in their bedrooms following the death of a neighbour.