Police said the teen and a friend were playing with a handgun when it went off by accident.