State orders nursing home into compliance after resident death