A man was shot outside a St. Petersburg restaurant Wednesday night as he tried to commit a carjacking, police said.The incident occurred about 8 p.m. in front of the Crafty Crab, 2901 Tyrone Blvd. N. Police said a man was waiting in a car while his wife was inside the restaurant picking up food.A man in a mask entered the vehicle and “attempted a carjacking,” St. Petersburg police said in a news release.“The victim pulled out his own gun and fired at the suspect,” the news release states. “The suspect fled the scene and the victim called 911 and waited for police to arrive.”Police identified the suspect as Simon White, 18. He was taken to Orlando Health Bayfront Hospital, where he was in critical but stable condition, police said.Police said White will face an attempted carjacking charge when he is released from the hospital.No other details were immediately released.