OAKLAND -- Two men were arrested Tuesday night on suspicion of robbing two men at gunpoint and pistol whipping one of them outside their East Oakland home, police said. A third suspect is being sought.

While the one man was being pistol whipped the gun went off and the bullet shattered a window of the home, police said. No one inside was hurt.

The suspected robbers were identified by police as Dachun Dupree, 22, of Oakland, and Leandre Anderson, 19, who gave an Antioch address. They were booked on suspicion of armed robbery and assault with a firearm.

The victims, both 26, were in the driveway of their home in the 2000 block of 27th Avenue about 9:15 p.m. Tuesday when they were confronted by three men holding guns who demanded money. The robbers took a wallet and cell phones from the men. When they tried to get the two men to go inside the house for more money, one of them resisted and was pistol whipped, causing the gun to fire, police said. That victim was later treated at a hospital for a head injury.

The robbers fled in a car which was spotted by officers a short time later at a gas station near 98th and Stearns avenues. Dupree and Anderson ran off but were arrested on nearby streets. The third suspect escaped. A gun and some of the stolen items were recovered in the car, police said.