Updated at 8:37 a.m. with additional information, including that Plano police are investigating whether the barricaded person was the shooter, as they initially thought.

Plano SWAT officers took a barricaded person into custody hours after someone was shot at an apartment complex overnight, police said.

Officers responded about 1:15 a.m. Tuesday to the 1300 block of Sherrye Drive, near 14th Street and Jupiter Road. Callers reported hearing females screaming and what they thought were gunshots in the southeast corner of the complex, Plano police spokesman David Tilley said.

Officers located the two females and found a person with a gunshot wound through his leg and a gunshot graze to his other leg. Their ages are not known.

That victim was transported to a hospital. He was later released.

The person police initially believed to be the gunman ran into an apartment. They were able to track him there by following a blood trail, Tilley said.

Police contacted the occupants of the apartment unit, who came out and said there was a person inside with a hand injury who refused to come out. It's believed that they know each other.

After failed attempts to talk to the barricaded person, crisis negotiators tried to make contact, Tilley said. When that failed, police sent the bomb robot inside to establish video and audio communication.

The robot got into a bedroom and opened the door of a closet, where the person was hiding. Bomb technicians began giving him commands and at that point he came out, Tilley said.