A Texas prosecutor was shot outside a Dallas-area courthouse Thursday, and the courthouse and other nearby buildings were locked down as investigators searched for two suspects, officials said.

The Dallas County district attorney's office sent an email to attorneys and staff early Thursday, saying a Kaufman County prosecutor had been fatally shot outside the Kaufman County Courthouse, about 30 miles east of Dallas, by two masked gunman, according to the message published by WFAA-TV.