A Philadelphia man was sentenced Wednesday to three months in jail for aiming a laser beam at a news helicopter last summer, prosecutors said.

Daniel F. Dangler, 30, told initially denied the charge but then confessed to FBI agents he flashed a green beam toward the Fox29 helicopter on July 18. He said he didn't realize the beam would harm anyone or that it was a crime, according to the office of U.S. Attorney Zane D. Memeger.

U.S. District Judge John R. Padova also ordered Dangler to serve three years of supervised release. He also faces up to $11,000 in fines from the Federal Aviation Administration, prosecutors said.