Sorry for your loss!
To avoid this from happening have a secure coop for night time roosting. No holes or gaps over 1/2 inch.
Racoons for the most part are night time marauders so safe coop is a must.
Chickens are blind in the dark and are easy pickings for anything that gets in.