An 8-year-old Texas boy who was trying to avoid being stung by a swarm of wasps was struck and killed by a car in a trailer park outside of Dallas over the weekend, police said on Monday.

The boy, identified as Alexander Ramirez, died at a hospital in Lewisville, about 25 miles northwest of Dallas, shortly after the incident on Sunday.

RELATED: New wasp species named after Boston Bruins goalie Tuukka Rask

The boy and his friends had stirred up the wasp nest and then ran away. Ramirez ran into the street and was hit by a sport utility vehicle driven by a 20-year-old woman, said Lewisville Police Captain Dan Rochelle.

"She was not driving recklessly, and she was not intoxicated," he said, adding she will not face charges relating to his death.