Updated

Officials say a Florida Panhandle sheriff's deputy is in critical condition after being shot during a confrontation outside an attorney's office.

The Okaloosa County Sheriff's Office said in a news release that the shooting happened around 8:20 a.m. Central time Tuesday in Shalimar. The office says that a short time later, the suspect was located, barricaded in a room at the Comfort Suites in nearby Niceville. Officials say they took the suspect into custody a short time later, about 10:30 a.m.

The Northwest Florida Daily News (http://bit.ly/1Yzv87R ) reports that the shooting took place outside the Cotton and Gates law firm in Shalimar, east of Pensacola.

Officials haven't released any information about the suspect. The deputy's name hasn't been released, and it was unclear what prompted the shooting. The races of those involved was not immediately known, either.

___

Information from: Northwest Florida Daily News (Fort Walton Beach, Fla.), http://www.nwfdailynews.com