A former college student in Pennsylvania  pleaded guilty Tuesday to attempted homicide of an unborn child after he admitted to putting bleach in his pregnant girlfriend’s water.

Theophilous Washington, 21, was a junior at Millersville University in 2016 when the incident occurred, The Associated Press reported. The girlfriend, who was not identified by name, said she drank water from Washington's refrigerator and upon returning to her dorm room, she felt a burning sensation in her throat and vomited. The woman called 911 and was taken to the hospital. The 2-month-old fetus appeared to be unharmed at the time according to the district attorney's office.

Millersville University police say Theophilous Washington gave his girlfriend, who was 2 months pregnant at the time, a bottle of water that he knew contained bleach in an attempt to harm her unborn child.

Posted by WPMT FOX43 on Tuesday, October 24, 2017

The woman has since given birth. Both mother and baby are in good health, The Associated Press reported.

Washington acknowledged having put bleach in the water, claiming he did not want his girlfriend to have the child, police said.

Washington will be sentenced at a later date.

The Associated Press contributed to this report.