When my son was that age - his social skills were the worst! Good grief! And he really did not get that no one wanted to play with him - because of HIM! Still to this day he makes up various excuses about why he does not have many friends - but at least he is more aware that it is his actions that cause the friends to leave. He is slowly learning - as your difficult child will too.
Hang in there! Summer will end before you know it.
(And SO sorry about your pup! That happened to my cat - mauled by a dog. Unfortunately he did not make it - but glad your pup is OK).