CASTRO VALLEY -- A man who pointed a rifle at sheriff's deputies in front of his home in Castro Valley was shot in the torso by police Friday night.

The man was taken to Eden Medical Center in Castro Valley but his condition was not known late Friday, said Alameda County Sheriff's spokesman Sgt. J.D. Nelson.

Nelson said deputies were called to the home at the corner of Seven Hills and Lake Chabot roads in Castro Valley about 7:30 p.m.

The man, who was not identified by police, had been in a dispute with a neighbor, and called sheriff's dispatch to say that if police arrived "there is going to be a shootout," Nelson said.

As sheriff's deputies in patrol cars and in the agency's armored vehicle drove down Seven Hills Road, they spotted the man -- armed with a rifle -- on the side of his house, Nelson said.

A sergeant looking through a porthole inside the armored vehicle radioed that the man had a weapon, Nelson said.

For several minutes the man moved from one spot to another on his sloping driveway, using bushes as cover until he raised the rifle and pointed it at the armored vehicle, Nelson said.

The sergeant, whose name was not released, shot him in the torso and the man dropped to the ground, Nelson said. Per department policy, the sergeant will be placed on administrative leave while the officer-involved shooting is investigated.

No one else was injured. Nelson did not know the nature of dispute the man had with his neighbor earlier Friday.

Check back for details.

Reach Kristin J. Bender at kbender@bayareanewsgroup.com. Follow her at Twitter.com/kjbender.