Thai police say the suspect killed his grandparents at home before going on a rampage at his school on the outskirts of Bangkok.