When Castle and Beckett discover that the victim of a building fire was actually shot to death, they get on the trail of a serial arsonist turned murderer.