You probably heated the mixture up too rapidly and ended up bringing it to a boil. When milk is boiled, the proteins and fat separate from the water, making curdled milk.