A man accused of a Co Tyrone arson attack which saw 12 people treated in hospital was allegedly heard saying “I’m in a lot of trouble”, a court has been told.