A lawyer for a New York City high school teacher charged with reckless endangerment for crashing his drone at the U.S. Open tennis tournament says his client was in the wrong place at the wrong time.

Andrew Marshall said Thursday that client Daniel Verley is an educator and amateur photographer who just wanted to shoot images of the globe sculpture at Flushing Meadows Park as the sun set. He says the drone went haywire, and the crash was an accident.

The drone buzzed diagonally over the court in Louis Armstrong Stadium before plummeting into the seats during the next-to-last game of a second-round match. No one was injured.

The 26-year-old Verley was arraigned Wednesday.