LITTLE ELM, Texas (AP) — A police detective was shot and killed outside a suburban Dallas home by a gunman who then held officers at bay for hours before being found dead inside.

Little Elm police Chief Rodney Harrison says Detective Jerry Walker died at a hospital Tuesday night.

Authorities say the incident began about 3 p.m. Tuesday with the report of a man armed with a long gun. Denton County sheriff's Lt. Orlando Hinojosa says when officers arrived, the armed man screamed at them from a backyard.

As officers withdrew, the man ducked into the house and fired from a window, striking Walker.

Authorities have not identified the suspect or provided his cause of death.

Walker was a father of four and 18-year veteran of the department.

Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.