Former NBA player Lonny Baxter was sentenced Wednesday to two months in jail after pleading guilty to charges of carrying a gun a few blocks from the White House.

Baxter, who played with the Charlotte Bobcats last season, has been in jail since his arrest on Aug. 16, when uniformed Secret Service officers responded to reports of shots being fired from a white sport utility vehicle.

Click here to visit FOXNews.com's Law Center

Officers found a gun and spent shell casings in the SUV that Baxter was driving. Baxter, 27, and his passenger, Irvin Martin, 35, were charged with carrying a handgun without a license and other firearms charges.

Baxter, who appeared Wednesday before District of Columbia Superior Court judge Craig Iscoe, apologized for the "careless, stupid, selfish act that I committed."

Iscoe sentenced the former University of Maryland star to 270 days in jail, then suspended all but 60 days. Baxter also was fined $2,000 and put on probation for 18 months.

Iscoe said he imposed the jail sentence because of Baxter's previous firearms charge. In July 2004, Baxter was arrested at his condominium on Connecticut Avenue NW after his shotgun went off and a bullet shattered a neighbor's window across the street. No one was injured.

Baxter had been scheduled to play basketball this fall with Montepaschi Siena, a pro team in Italy. But that could be in jeopardy.

Several hours before Baxter was sentenced, Siena general manager Ferdinando Minucci said: "If (Baxter) arrives soon there won't be any problems. But if he can't come for a month or two, we can't wait that long. The season starts in October."