A military wife detained after she refused a search request at a Fort Hood gate and then later tried to drive through the same gate without authorization had a 2-year-old child with her at the time, post officials said Wednesday.

The woman, whose name and age weren’t released, refused the search request just before 6 a.m. Tuesday at the post’s Clear Creek Gate and then attempted unsuccessfully to enter the post through different gates, Fort Hood officials said in a press release.

The woman was denied access because she didn’t have any identification, post officials said.

“During a final attempt, the individual tried to drive through the Clear Creek Gate without proper authorization, at which time, the grab barriers were deployed,” officials said.

The vehicle was stopped and the driver was detained.

She was charged with unlawful entry, disorderly conduct, resisting apprehension and child endangerment because the child was in the vehicle.

The child was turned over to the woman’s husband, officials said, and the woman was released to Carl R. Darnall Army Medical Center, officials said.

Officials say they don’t believe alcohol was involved in the incident and say they’re continuing to investigate.