While it does not happen often, you may have had a flower pollinated and what you are seeing is a seed forming or more likely the plant generated a flower that genetically is flawed. It could go ahead and open or being imperfect the plant may abort it.