Armed SFPD canvassing the area of Everglade and Sloat for a suspect who shot an officer. pic.twitter.com/DXBSjVqpcV — Sergio Quintana (@svqjournalist) October 15, 2016

Suspect involved in the shooting incident has been taken into custody by #SFPD SWAT. #SF — San Francisco Police (@SFPD) October 15, 2016

#SFPD deployed Non-lethal Flash Bang in an attempt to apprehend the suspect safely. #SF — San Francisco Police (@SFPD) October 15, 2016

#SFPD Officer Injured during incident near Sloat & Everglade. Shelter in place. PIO's are responding-Media to respond to Lucky's Store #SF — San Francisco Police (@SFPD) October 15, 2016

The SFPD SWAT team has arrived at a second scene at Vicente & 28th. This is an active police scene. pic.twitter.com/xs8RFree9G — Sergio Quintana (@svqjournalist) October 15, 2016

SAN FRANCISCO (KGO) -- A manhunt ended when San Francisco police took a suspected gunman into custody after an officer was shot. The officer suffered a serious graze wound to the head, but is expected to survive.The incident occurred after 8:15 p.m. in the Sunset District at Sloat Boulevard and Everglade. Police issued a shelter-in-place for the area.According to Officer Carlos Manfredi, police responded to a report of a mentally disturbed person at a shopping center. The man, a white male in his 20s or 30s, did not comply and fired several rounds at police. The suspect then fled on foot and headed towards Stern Grove Park.A search ensued and dozens of officers fanned out through the area, looking for the suspect. The suspect then emerged from the bushes near the park and there was an exchange of gunfire at 27th Ave. and Vicente. The suspect was then shot, according to police.Sources say the officer, a young man, was taken to San Francisco General Hospital. He is conscious and talking and is expected to survive.The suspect was also taken to SF General for treatment, but there was no word on his condition.