A 15-year-old suspect caught by police because he went to the hospital for a gunshot wound.

Two terrified women hiding, one under the covers of a bed, while three men are shot in the head and chest.

An apparent third suspect, who is still on the loose.

Court documents filed this week in Marion County finally shed some light on what happened before the July 16 shooting at a Somerset Lakes apartment that left three people dead and a teen barely old enough to drive facing a murder charge.

The drug robbery apparently was committed by people the victims had befriended.

Devante Gilbert, 18, and the 15-year-old suspect have been arrested in connection with the slayings of Dominique Miller, 25; Jordan Wright, 25; and Justin Crowder, 19.

Gilbert has been charged with three counts of robbery resulting in serious bodily injury. The 15-year-old is facing multiple counts of murder and one count of robbery.

According to a probable cause affidavit filed with Gilbert's charges, all three victims were found dead in different areas of the north-side apartment.

Wright, who was found first, was lying in the hallway on top of a samurai sword. Crowder was found near Wright. Miller was found in one of the bedrooms.

The two women in the apartment said they were hanging out with the three victims when they all heard a knock at the door, court documents said. One of the women said she heard Crowder acknowledge the visitors just before the shooting began.

Devante Gilbert, 18, was arrested in connection with a July triple homicide.(Photo: Provided by IMPD)

One woman said that Wright grabbed the samurai sword and told her to stay hidden in his bedroom. That was the last time she saw him alive.

The other woman, who was in Crowder's bedroom with Miller, said she hid under the covers when she heard gunshots. She told police that shortly after the shooting began, two men entered the room and killed Miller.

The woman said she saw one of the men and recognized him as a friend of Crowder's who has visited the apartment four or five times in the past. She said that Crowder was known to keep marijuana in a safe in his bedroom, the court documents said.

That safe was missing after the incident, according to police.

A next-door neighbor told police that two men were seen running from the apartment and into a silver or grey Honda, court documents said. The neighbor said the car already had someone in the driver's seat.

As investigators worked the shooting scene they were notified of a 15-year-old who arrived at IU Health Methodist Hospital with a gunshot wound to the buttocks. Officials said the teen was driven to the hospital in a silver or grey Honda.

The teen told police that he was shot while walking down the street in the area of 40th and Illinois streets and that he didn't know who would want to shoot him, court documents said. He then said he went to the house of his friend, later identified as Gilbert, to clean his wounds before calling his mother to take him to the hospital.

Police were able to confirm that Gilbert drove a silver 2001 Honda that he sold to someone else shortly after the shooting, court documents said. The car was found, and a search led to the discovery of blood samples from the passenger seat that matched the 15-year-old's DNA.

Police also took a 911 call about 24 minutes after the shooting. The call came from Lake Nora Apartments, which is about 4 miles from where the shooting occurred. The caller said she heard six gunshots and saw a man place a gun in the trunk of a car before grabbing a bag out of the vehicle and walking to a wooded area.

At Lake Nora, police searched the wooded area and found the door to a safe, a 9 mm shell casing and an empty Smith & Wesson magazine. The callers also said she saw three people in the car as it drove away.

About two weeks after the shooting, a person who knows Gilbert said that he admitted to being the driver in the triple homicide, court documents said. The person also said Gilbert admitted to being with the 15-year-old suspect during the incident but said that he stayed in the car the entire time.

The 15-year-old was taken into custody, after he was released from the hospital. Gilbert was taken into custody on a warrant for robbery, after surrendering Tuesday afternoon with his attorney at IMPD headquarters.

Call IndyStar reporter Justin L. Mack at (317) 444-6138 or email him at justin.mack@indystar.com. Follow him on Twitter: @justinlmack.