A shooting at a Kingwood apartment complex turned into a drug bust early Thursday morning.

Houston police said it happened at the Villas of Kingwood on Forest Center Drive.

Officers said an armed man broke into an apartment unit and robbed the two men inside, shooting one in the leg. Police said the robber took off, and then in a panic, the victim’s roommate also left.

As he exited the gate, police stopped him and searched his car. Officers arrested him after finding a box inside filled with marijuana, cocaine, three guns and cash.

Police have not arrested the shooter.

The gunshot victim was taken to Ben Taub General Hospital in stable condition.