High schooler Ephraim Tytell says he was told to apologize to history teacher after making school 'look bad' in videos and photos posted to social media