A man fatally shot by officers this weekend has been identified as 18-year-old high school senior Alan Dwayne Blueford, said police, who also confirmed that the officer who fired the fatal round shot himself in the right foot during the confrontation.

Sgt. Chris Bolton said the Alameda County coroner's office on Monday evening identified the dead man, who was shot three times early Sunday by an Oakland policeman after witnesses said they saw the man point a gun at the officer.

"(The officer) felt there was an immediate, lethal threat to his life," Bolton said.

Police said the investigators don't believe the man fired the gun.

Oakland school district spokesman Troy Flint said Blueford attended Skyline High School.

The officer fired four shots -- three hit the man -- and one hit the officer's foot. The officer was hospitalized but Bolton said he will recover from his injury. His name and length of service were not released.

The shooting happened just after midnight in the 9200 block of Birch Street in East Oakland. The officer was patrolling the area with a partner when they saw three people in the 1900 block of 90th Avenue, police said.

The officers approached the group, and one of the men started running, police said. The officers believed that man was carrying a hidden gun, and an officer ran after him. When the man pointed the gun at the officer, the officer fired his weapon, police said.

A gun was found at the scene, Bolton said. Bolton said Blueford was on felony probation for burglary in San Joaquin County.

Oakland police attorney Harry Stern said the shooting was "100 percent" in line with police policy. Oakland civil rights attorney John Burris said the family has retained him to investigate the shooting.

The injured officer was placed on paid administrative leave as the incident is investigated separately by homicide detectives, internal affairs investigators and the Alameda County District Attorney's Office, as is standard in police shootings.

Sunday's shooting was the third officer-involved shooting in Oakland this year, but the first fatal shooting involving an officer.

Blueford is the second Skyline student to die recently. Jonas Tayong Tabeson, 18, died April 19 in a rollover car crash in King City.