The son of a veteran Boston police officer has been arrested on terrorism charges.