SAN FRANCISCO (CBS SF) — A man was accidentally shot in the leg near San Francisco State University on Wednesday night when his neighbor was cleaning his gun and didn’t realize there was a bullet in the chamber, police said.

The gun owner, a 24-year-old man, was cleaning a handgun around 10:30 p.m. in his home in the 300 block of Serrano Drive when the gun fired, police said.

READ MORE: New Twitter CEO Parag Agrawal Steps From Behind The Scenes To High Profile

The bullet went through the floor and struck a 63-year-old man downstairs in the leg. The victim was taken to a hospital and is expected to survive his injuries, according to police.

READ MORE: Santa Clara Shoe Store Ransacked in Late Night Smash-and-Grab Robbery

ALSO READ: 3-Year-Old Fatally Shoots Herself After Finding Gun In Central Valley Home

MORE NEWS: Niles Canyon Road Between Fremont, Sunol To Be Closed Over Weekend For Construction

© Copyright 2016 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.