(CNN) His lawyer says Edward Brown found a handgun in a fanny pack and decided to fire it out of curiosity.

But the sound of gunshots on the city's South Side apparently drew the attention of two Chicago police officers who pursued Brown, ran onto train tracks and were fatally struck from behind by a Metra train , authorities said.

Brown has a $200,000 bond after a court hearing on Thursday afternoon.

"It's his first arrest of his whole life and my client had no intention for anyone to get hurt," said attorney Frank Kostouros. "Ultimately, he's a good kid who made a mistake."

Brown, 24, faces a charge of reckless discharge of a firearm and aggravated unlawful use of a weapon, both felonies.

Read More