Two women were killed and a child was injured in a shooting at a residence hall at Texas A&M University-Commerce on Monday.

Students and staff members on campus were asked to shelter in place as a "precautionary measure" as university police investigated the shooting at Pride Rock Residence Hall. The order was lifted after about an hour, but the residence hall remained blocked off, campus police said.

University Police Chief Bryan Vaughn said officers responded to a call from another building resident at about 10:17 a.m. local time. Officers found two dead women in a room.

"A third person, a small child who is approximately 2 years old who is in stable condition, was also in the room," Vaughn said.

The university did not identify the women or the child.

View this graphic on nbcnews.com

Multiple law enforcement sources told NBC News that investigators believe those involved in the shooting knew each other.

Texas A&M University-Commerce is a public university about 65 miles northeast of downtown Dallas.

Classes and all campus events have been canceled through Wednesday, and professional counselors will be available, the university said.

In October, a gunman opened fire at an off-campus homecoming and Halloween party, killing two people. The suspect escaped amid the chaos, and no one has been charged in the incident. A person had been identified as a suspect but was later cleared of any wrongdoing, NBC Dallas-Fort Worth reported. That shooting happened in Greenville, which is southwest of Commerce. Around 750 people were at the event.