A transient has denied charges he fired shots at a Billings fast-food worker during a robbery attempt and at a police officer who responded to the shooting.

The Billings Gazette reports 38-year-old Justin Wesley Delacruz pleaded not guilty Thursday to two counts of attempted deliberate homicide, along with charges of robbery, criminal endangerment and drug possession.

Delacruz appeared before District Judge Michael G. Moses via video from the Yellowstone County jail with Assistant Public Defender Clark Matthews. Moses maintained Delacruz's bail at $1 million.

Charging documents allege Delacruz fired shots at a Sonic Drive-in employee after demanding money early on July 6. Court records allege Delacruz then fired a shot through the windshield of Officer Shane Weinreis' patrol car and the two men engaged in a shootout that ended when Delacruz's gun jammed.