OAKLEY — A 48-year-old Oakley man shot himself in the leg Friday and had to be flown to the hospital, authorities said.

Fire crews responded about 11:30 p.m. to a report of a medical emergency in the area of East Cypress Road and Main Street, said Craig Auzenne, a battalion chief with the East Contra Costa Fire Protection District.

Medical personnel transported the man via helicopter to a trauma center, he said.

Auzenne said the wound was self-inflicted and appeared accidental.