Two teenagers were taken into custody Tuesday after they allegedly assaulted another juvenile in an attack that involved a pellet gun, police said.