An officer shot and wounded a man who allegedly refused to drop a gun during an overnight encounter with police at Hains Point, a U.S. Park Police spokesman said.

The man was taken to the hospital with serious, but non-life threatening, injuries, and police continue to investigate what prompted the shooting in Southwest Washington, said Sgt. David Schlosser, the spokesman.

During a routine patrol after the park closed, an officer came upon a n armed man sitting in a car around 1:25 a.m., Schlosser said.

The officer requested assistance, Schlosser said. At some point, the man got out of the vehicle and the officer repeatedly told him to drop his handgun, Schlosser said. The man refused, according to Schlosser, and the officer opened fire.

It’s not clear why the man was in the parking area or why he was armed, Schlosser said. The man’s identity was not released, but Schlosser described him as an adult male.

East Potomac Park remained closed Tuesday morning as police investigate the shooting.