GREENSBURG, Pa. (AP) — A 16-year-old Pennsylvania boy charged with fatally shooting a friend in the face, then taking a selfie with his body has been ordered to stand trial on criminal homicide and firearms charges.

Defense attorney Patrick Thomassey doesn’t deny that Maxwell Morton, of Jeannette, killed 16-year-old Ryan Mangan at Mangan’s home Feb. 4.

READ MORE: Family Members Identify 21-Year-Old Woman Killed After Disgruntled Patron Opened Fire In Northeast Philadelphia Bar As Jailene Holton

But Thomassey disputes that Morton meant to kill Mangan. He says the boys were horsing around with a loaded gun when Mangan was shot. A police officer testified that Morton was trying to take a picture of Mangan with the cellphone aimed down the barrel of the gun before pulling the trigger.

READ MORE: Brotherly Love: Philadelphia Nonprofit Legacy Of Hope Offering Help To Families Facing Cancer Diagnosis

Thomassey says Morton panicked and took the selfie to send to a friend as “proof” after the friend refused to believe what happened.

MORE NEWS: Arson Suspect Arrested In Connection To Fire, Building Collapse That Killed Philadelphia Fire Lt. Sean Williamson

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)